mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
feat(FE-113): create Transfer to Laying type
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
import { BaseApiResponse, BaseMetadata, flags } from '@/types/api/api-general';
|
||||||
|
import { Kandang } from '@/types/api/master-data/kandang';
|
||||||
|
|
||||||
|
export type BaseTransferToLaying = {
|
||||||
|
id: number;
|
||||||
|
transfer_date: string;
|
||||||
|
flock_source: {
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
flock_destination: {
|
||||||
|
id: number;
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
quantity: number;
|
||||||
|
kandangs: {
|
||||||
|
kandang: Kandang;
|
||||||
|
quantity: number;
|
||||||
|
}[];
|
||||||
|
reason: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type TransferToLaying = BaseMetadata & BaseTransferToLaying;
|
||||||
|
|
||||||
|
export type CreateTransferToLayingPayload = {
|
||||||
|
transfer_date: string;
|
||||||
|
flock_source_id: number;
|
||||||
|
flock_destination_id: number;
|
||||||
|
totalQuantity: number;
|
||||||
|
kandangs: {
|
||||||
|
kandang_id: number;
|
||||||
|
quantity: number;
|
||||||
|
}[];
|
||||||
|
reason: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type UpdateTransferToLayingPayload = CreateTransferToLayingPayload;
|
||||||
Reference in New Issue
Block a user