mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 14:25:47 +00:00
refactor(FE-212): update PurchaseRequestForm schema and validation, streamline warehouse handling and add sub quantity field
This commit is contained in:
Vendored
+3
-5
@@ -1,6 +1,5 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { Supplier } from '@/types/api/master-data/supplier';
|
||||
import { Warehouse } from '@/types/api/master-data/warehouse';
|
||||
|
||||
export type BasePurchase = {
|
||||
id: number;
|
||||
@@ -8,7 +7,6 @@ export type BasePurchase = {
|
||||
po_number: string;
|
||||
po_date: string;
|
||||
supplier: Supplier;
|
||||
warehouse: Warehouse[];
|
||||
credit_term: number;
|
||||
due_date: string;
|
||||
grand_total: number;
|
||||
@@ -24,10 +22,10 @@ export type CreatePurchaseRequestPayload = {
|
||||
credit_term: number;
|
||||
notes?: string | null;
|
||||
purchase_items: {
|
||||
warehouse_ids: number;
|
||||
warehouse_id: number;
|
||||
product_id: number;
|
||||
product_warehouse_id: number;
|
||||
total_qty: number;
|
||||
product_warehouse_id?: number | null;
|
||||
sub_qty: number;
|
||||
price: number;
|
||||
}[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user