mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
refactor(FE-106-91-339-238): Slicing UI Chickin DOC Refactored
This commit is contained in:
+19
-5
@@ -15,6 +15,9 @@ export type BaseMarketing = {
|
||||
so_date: string;
|
||||
sales_person: CreatedUser;
|
||||
notes: string;
|
||||
grand_total: number;
|
||||
approval: BaseApproval;
|
||||
marketing_products?: MarketingProducts[];
|
||||
};
|
||||
|
||||
export type MarketingProducts = {
|
||||
@@ -22,18 +25,29 @@ export type MarketingProducts = {
|
||||
qty: number;
|
||||
unit_price: number;
|
||||
avg_weigth: number;
|
||||
total_weight: number;
|
||||
total_price: number;
|
||||
product_warehouse: ProductWarehouse;
|
||||
delivery_date?: string;
|
||||
vehicle_number?: string;
|
||||
marketing_delivery_products?: MarketingDeliveryProducts;
|
||||
};
|
||||
|
||||
export type SalesOrder = BaseMetadata & BaseMarketing;
|
||||
export type MarketingDeliveryProducts = {
|
||||
id: number;
|
||||
qty: number;
|
||||
unit_price: number;
|
||||
avg_weigth: number;
|
||||
total_weight: number;
|
||||
total_price: number;
|
||||
delivery_date: string;
|
||||
vehicle_number: string;
|
||||
};
|
||||
|
||||
export type CreateSalesOrderPayload = {
|
||||
export type Marketing = BaseMetadata & BaseMarketing;
|
||||
|
||||
export type CreateMarketingPayload = {
|
||||
customer_id: number;
|
||||
date: string;
|
||||
notes: string;
|
||||
};
|
||||
|
||||
export type UpdateSalesOrderPayload = CreateSalesOrderPayload;
|
||||
export type UpdateMarketingPayload = CreateMarketingPayload;
|
||||
|
||||
+1
@@ -9,6 +9,7 @@ export type BaseKandang = {
|
||||
location: BaseLocation;
|
||||
capacity: number;
|
||||
pic: BaseUser;
|
||||
project_flock_kandang_id?: number;
|
||||
};
|
||||
|
||||
export type Kandang = BaseMetadata & BaseKandang;
|
||||
|
||||
+11
-1
@@ -1,5 +1,7 @@
|
||||
import { Kandang } from '@/type/master-data/kandang';
|
||||
import { ProjectFlock } from '@/types/api/production/project-flock';
|
||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||
import { Supplier } from '../master-data/supplier';
|
||||
|
||||
export type BaseProjectFlockKandang = {
|
||||
id: number;
|
||||
@@ -7,7 +9,15 @@ export type BaseProjectFlockKandang = {
|
||||
kandang_id: number;
|
||||
kandang: Kandang;
|
||||
project_flock: ProjectFlock;
|
||||
available_quantity?: number;
|
||||
available_qtys?: AvailableQty[];
|
||||
};
|
||||
|
||||
export type AvailableQty = {
|
||||
chick_in_date?: string;
|
||||
po_number?: string;
|
||||
document_path?: string;
|
||||
supplier?: Supplier;
|
||||
product_warehouse: ProductWarehouse;
|
||||
};
|
||||
|
||||
export type ProjectFlockKandang = BaseProjectFlockKandang;
|
||||
|
||||
Reference in New Issue
Block a user