feat : sauvegarde01 partie 2

This commit is contained in:
2026-02-10 16:01:40 +01:00
parent f12f56cb43
commit df12cce54c
7 changed files with 106 additions and 3 deletions

View File

@@ -41,6 +41,14 @@ export interface WeightEntryData {
weighedAt: string | null
}
export interface WeightFormData {
id: number
weight: number
type: 'gross' | 'tare'
}
export type ReceptionPayload = {
licensePlate?: string | null
receptionDate?: string
@@ -72,3 +80,14 @@ export type ReceptionFormData = {
driverId: string
vehicleId: string
}
export type ReceptionFormWeight = {
weights: WeightFormData[]
}
export interface ReceptionUpdatePayload {
weights: {
id: number
weight: number
}[]
}