refactor(FE-239-238): Refactor UI & API Integration For Form Chickin & Chickin Details

This commit is contained in:
randy-ar
2025-11-10 06:07:02 +07:00
parent e0c347c3d5
commit 9f4f140018
10 changed files with 122 additions and 288 deletions
+12
View File
@@ -11,6 +11,7 @@ export type BaseProjectFlockKandang = {
kandang: Kandang;
project_flock: ProjectFlock;
available_qtys?: AvailableQty[];
chickins?: Chickin[];
approval: BaseApproval;
};
@@ -21,6 +22,17 @@ export type AvailableQty = {
note?: string;
};
export type Chickin = {
id: number;
project_flock_kandang_id: number;
chick_in_date: string;
product_warehouse_id: number;
product_warehouse: ProductWarehouse;
usage_qty: number;
pending_usage_qty: number;
note: string;
};
export type ProjectFlockKandang = BaseProjectFlockKandang;
export type LookupProjectFlockKandangPayload = {