mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 22:35:45 +00:00
Merge branch 'development' into feat/FE/US-77/transfer-to-laying
This commit is contained in:
Vendored
+9
@@ -105,4 +105,13 @@ export type ApprovalsLine = {
|
||||
status: 'approved' | 'rejected' | 'waiting';
|
||||
}[];
|
||||
|
||||
export type BaseApproval = {
|
||||
step_number: number;
|
||||
step_name: string;
|
||||
action: string;
|
||||
notes: string | null;
|
||||
action_by: CreatedUser;
|
||||
action_at: string;
|
||||
};
|
||||
|
||||
export type ApproveAction = 'APPROVED' | 'REJECTED';
|
||||
|
||||
+11
-2
@@ -1,4 +1,4 @@
|
||||
import { BaseMetadata } from "@/types/api/api-general";
|
||||
import { BaseApproval, BaseMetadata } from "@/types/api/api-general";
|
||||
import { ProjectFlockKandang } from "@/types/api/production/project-flock-kandang";
|
||||
|
||||
export type BaseChickin = {
|
||||
@@ -7,6 +7,7 @@ export type BaseChickin = {
|
||||
quantity?: number;
|
||||
note?: string;
|
||||
project_flock_kandang?: ProjectFlockKandang;
|
||||
approval: BaseApproval;
|
||||
}
|
||||
|
||||
export type Chickin = BaseMetadata & BaseChickin;
|
||||
@@ -14,7 +15,15 @@ export type Chickin = BaseMetadata & BaseChickin;
|
||||
export type CreateChickinPayload = {
|
||||
project_flock_kandang_id: number;
|
||||
chick_in_date: string;
|
||||
note: string;
|
||||
quantity?: number;
|
||||
}
|
||||
|
||||
export type UpdateChickinPayload = CreateChickinPayload;
|
||||
export type UpdateChickinPayload = CreateChickinPayload & {
|
||||
id: number;
|
||||
};
|
||||
|
||||
export type ChickinApprovalPayload = {
|
||||
action: 'APPROVED' | 'REJECTED';
|
||||
approvable_ids: number[];
|
||||
};
|
||||
+7
-1
@@ -7,6 +7,12 @@ export type BaseProjectFlockKandang = {
|
||||
kandang_id: number;
|
||||
kandang: Kandang;
|
||||
project_flock: ProjectFlock;
|
||||
available_quantity?: number;
|
||||
}
|
||||
|
||||
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
||||
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
||||
|
||||
export type LookupProjectFlockKandangPayload = {
|
||||
project_flock_id: number;
|
||||
kandang_id: number;
|
||||
}
|
||||
+7
-1
@@ -3,7 +3,7 @@ import { Fcr } from '@/types/api/master-data/fcr';
|
||||
import { Flock } from '@/types/api/master-data/flock';
|
||||
import { Kandang } from '@/types/api/master-data/kandang';
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { BaseApproval, BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type BaseProjectFlock = {
|
||||
id: number;
|
||||
@@ -21,6 +21,7 @@ export type BaseProjectFlock = {
|
||||
period: number;
|
||||
kandang_ids: number[];
|
||||
kandangs: Kandang[];
|
||||
approval: BaseApproval;
|
||||
};
|
||||
|
||||
export type PeriodFlock = {
|
||||
@@ -41,3 +42,8 @@ export type CreateProjectFlockPayload = {
|
||||
};
|
||||
|
||||
export type UpdateProjectFlockPayload = CreateProjectFlockPayload;
|
||||
|
||||
export type ProjectFlockApprovalPayload = {
|
||||
action: 'APPROVED' | 'REJECTED';
|
||||
approvable_ids: number[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user