mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
feat(FE-181-179-220): Slicing UI, Client Side Validation and API Integration for Delivery Order
This commit is contained in:
+19
-2
@@ -15,9 +15,9 @@ import { Warehouse } from '../master-data/warehouse';
|
||||
export type BaseMarketing = {
|
||||
id: number;
|
||||
status?: string;
|
||||
name: string;
|
||||
customer: Customer;
|
||||
so_number: string;
|
||||
so_date: string;
|
||||
customer: Customer;
|
||||
sales_person: CreatedUser;
|
||||
notes: string;
|
||||
latest_approval: BaseApproval;
|
||||
@@ -118,6 +118,23 @@ export type CreateSalesOrderProductPayload =
|
||||
product_warehouse?: ProductWarehouse | undefined;
|
||||
};
|
||||
|
||||
export type CreateDeliveryOrderPayload = {
|
||||
marketing_id?: number;
|
||||
delivery_products: CreateDeliveryOrderProductPayload[];
|
||||
};
|
||||
|
||||
export type CreateDeliveryOrderProductPayload =
|
||||
BaseCreateMarketingProductPayload & {
|
||||
id?: number;
|
||||
marketing_product_id: number;
|
||||
delivery_date: string;
|
||||
};
|
||||
|
||||
export type UpdateSalesOrderProductPayload = CreateSalesOrderProductPayload;
|
||||
|
||||
export type UpdateDeliveryOrderProductPayload =
|
||||
CreateDeliveryOrderProductPayload;
|
||||
|
||||
export type UpdateSalesOrderPayload = CreateSalesOrderPayload;
|
||||
|
||||
export type UpdateDeliveryOrderPayload = CreateDeliveryOrderPayload;
|
||||
|
||||
+6
-1
@@ -41,7 +41,6 @@ export type CreateProjectFlockPayload = {
|
||||
category: string;
|
||||
fcr_id: number;
|
||||
location_id: number;
|
||||
period: number;
|
||||
kandang_ids: number[];
|
||||
};
|
||||
|
||||
@@ -61,3 +60,9 @@ export type ProjectFlockAvailableQuantity = {
|
||||
available_qty: number;
|
||||
}[];
|
||||
};
|
||||
|
||||
export type ProjectFlockPeriods = {
|
||||
id: number;
|
||||
name: string;
|
||||
period: number;
|
||||
}[];
|
||||
|
||||
Reference in New Issue
Block a user