refactor(FE-114,136,137): update feed and vaccination fields to use IDs instead of names and add stock validation

This commit is contained in:
rstubryan
2025-10-17 13:59:28 +07:00
parent fa60f884c1
commit caf68d438f
3 changed files with 174 additions and 80 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ export type CreateRecordingPayload = {
location_id: number;
coop_id: number;
feed_data: {
feed_name: string;
feed_id: string;
feed_qty: number;
feed_stock: number;
}[];
@@ -48,7 +48,7 @@ export type CreateRecordingPayload = {
average_chicken_weight: number;
}[];
vaccination: {
vaccine_name: string;
vaccine_id: string;
total_stock: number;
used_stock: number;
}[];