mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
feat(FE-323): create Closing type
This commit is contained in:
Vendored
+55
@@ -0,0 +1,55 @@
|
|||||||
|
import { Area } from '@/types/api/master-data/area';
|
||||||
|
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 { BaseApproval, BaseMetadata } from '@/types/api/api-general';
|
||||||
|
|
||||||
|
export type BaseClosing = {
|
||||||
|
id: number;
|
||||||
|
location_id: number;
|
||||||
|
location_name: string;
|
||||||
|
project_category: 'GROWING' | 'LAYING';
|
||||||
|
period: number;
|
||||||
|
closing_date?: string;
|
||||||
|
shed_label: string;
|
||||||
|
shed_count: number;
|
||||||
|
sales_paid_amount: number;
|
||||||
|
sales_remaining_amount: number;
|
||||||
|
sales_payment_status: string;
|
||||||
|
project_status: 'Pengajuan' | 'Aktif' | 'Selesai';
|
||||||
|
};
|
||||||
|
|
||||||
|
export type Closing = BaseMetadata & BaseClosing;
|
||||||
|
|
||||||
|
export type BaseClosingGeneralInformation = BaseClosing & {
|
||||||
|
flock_id: number;
|
||||||
|
period: number;
|
||||||
|
project_type: 'GROWING' | 'LAYING';
|
||||||
|
population: number;
|
||||||
|
active_house_count: number;
|
||||||
|
sales_payment_status: string;
|
||||||
|
project_status: 'Pengajuan' | 'Aktif' | 'Selesai';
|
||||||
|
closing_status: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ClosingGeneralInformation = BaseMetadata &
|
||||||
|
BaseClosingGeneralInformation;
|
||||||
|
|
||||||
|
export type ClosingIncomingSapronak = {
|
||||||
|
id: number;
|
||||||
|
date: string;
|
||||||
|
reference_number: string;
|
||||||
|
transaction_type: string;
|
||||||
|
product_name: string;
|
||||||
|
product_category: string;
|
||||||
|
product_sub_category: string;
|
||||||
|
source_warehouse: string;
|
||||||
|
destination_warehouse: string;
|
||||||
|
quantity: number;
|
||||||
|
unit: string;
|
||||||
|
formatted_quantity: string;
|
||||||
|
notes: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type ClosingOutgoingSapronak = ClosingIncomingSapronak;
|
||||||
Reference in New Issue
Block a user