refactor(FE-170,174): update schema and validation for stocks and depletions; rename usage_qty to qty for consistency

This commit is contained in:
rstubryan
2025-11-02 23:14:07 +07:00
parent e116311dc2
commit aac7215be7
3 changed files with 24 additions and 25 deletions
+2 -3
View File
@@ -69,15 +69,14 @@ export type Recording = BaseMetadata &
};
export type CreateGrowingRecordingPayload = {
project_flock_kandangs_id: number;
project_flock_kandang_id: number;
body_weights: {
avg_weight: number;
qty: number;
}[];
stocks?: {
product_warehouse_id: number;
usage_qty: number;
pending_qty?: number;
qty: number;
}[];
depletions?: {
product_warehouse_id: number;