mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
feat(FE-169): Slicing UI Index Pengajuan Sales & Define Data Type for Marketing
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
import { Customer } from '@/types/api/master-data/customer';
|
||||
import {
|
||||
BaseApproval,
|
||||
BaseMetadata,
|
||||
CreatedUser,
|
||||
} from '@/types/api/api-general';
|
||||
import { ProductWarehouse } from '../inventory/product-warehouse';
|
||||
|
||||
export type BaseMarketing = {
|
||||
id: number;
|
||||
status?: string;
|
||||
so_number: string;
|
||||
customer: Customer;
|
||||
so_docs: string;
|
||||
so_date: string;
|
||||
sales_person: CreatedUser;
|
||||
notes: string;
|
||||
};
|
||||
|
||||
export type MarketingProducts = {
|
||||
id: number;
|
||||
qty: number;
|
||||
unit_price: number;
|
||||
avg_weigth: number;
|
||||
total_price: number;
|
||||
product_warehouse: ProductWarehouse;
|
||||
delivery_date?: string;
|
||||
vehicle_number?: string;
|
||||
};
|
||||
|
||||
export type SalesOrder = BaseMetadata & BaseMarketing;
|
||||
|
||||
export type CreateSalesOrderPayload = {
|
||||
customer_id: number;
|
||||
date: string;
|
||||
notes: string;
|
||||
};
|
||||
|
||||
export type UpdateSalesOrderPayload = CreateSalesOrderPayload;
|
||||
Reference in New Issue
Block a user