feat(FE-169): Slicing UI Index Pengajuan Sales & Define Data Type for Marketing

This commit is contained in:
randy-ar
2025-10-31 13:57:30 +07:00
parent 7ab96fac8b
commit b6991652ac
12 changed files with 253 additions and 1 deletions
+39
View File
@@ -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;