mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
refactor(FE-114): simplify CreateRecordingPayload structure and update validation in RecordingForm
This commit is contained in:
+5
-12
@@ -27,26 +27,19 @@ export type Recording = BaseMetadata & BaseRecording;
|
||||
|
||||
export type CreateRecordingPayload = {
|
||||
project_flock_kandang_id: number;
|
||||
record_datetime: string;
|
||||
status?: number;
|
||||
ontime?: boolean;
|
||||
body_weights?: {
|
||||
body_weights: {
|
||||
weight: number;
|
||||
qty: number;
|
||||
notes?: string;
|
||||
}[];
|
||||
stocks?: {
|
||||
product_warehouse_id: number;
|
||||
increase?: number;
|
||||
decrease?: number;
|
||||
usage_amount?: number;
|
||||
notes?: string;
|
||||
usage_amount: number;
|
||||
notes: string;
|
||||
}[];
|
||||
depletions?: {
|
||||
product_warehouse_id: number;
|
||||
condition: string;
|
||||
product_warehouse_id?: number;
|
||||
total: number;
|
||||
notes?: string;
|
||||
notes: string;
|
||||
}[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user