mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-149): add flock_name and kandangs.project_flock_kandang_id field
This commit is contained in:
+14
-1
@@ -8,6 +8,7 @@ import { BaseApproval, BaseMetadata } from '@/types/api/api-general';
|
|||||||
export type BaseProjectFlock = {
|
export type BaseProjectFlock = {
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
|
flock_name: string;
|
||||||
status: string;
|
status: string;
|
||||||
flock: Flock;
|
flock: Flock;
|
||||||
flock_id: number;
|
flock_id: number;
|
||||||
@@ -20,7 +21,9 @@ export type BaseProjectFlock = {
|
|||||||
location_id: number;
|
location_id: number;
|
||||||
period: number;
|
period: number;
|
||||||
kandang_ids: number[];
|
kandang_ids: number[];
|
||||||
kandangs: Kandang[];
|
kandangs: (Kandang & {
|
||||||
|
project_flock_kandang_id: number;
|
||||||
|
})[];
|
||||||
approval: BaseApproval;
|
approval: BaseApproval;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -47,3 +50,13 @@ export type ProjectFlockApprovalPayload = {
|
|||||||
action: 'APPROVED' | 'REJECTED';
|
action: 'APPROVED' | 'REJECTED';
|
||||||
approvable_ids: number[];
|
approvable_ids: number[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type ProjectFlockAvailableQuantity = {
|
||||||
|
project_flock_id: number;
|
||||||
|
flock_name: string;
|
||||||
|
category: 'LAYING' | 'GROWING';
|
||||||
|
kandangs: {
|
||||||
|
project_flock_kandang_id: number;
|
||||||
|
available_qty: number;
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user