refactor(FE-311): remove transport_total field and update approval actions

This commit is contained in:
rstubryan
2025-12-08 14:42:39 +07:00
parent 88878f7613
commit 3a7f1f4812
7 changed files with 73 additions and 121 deletions
+2 -2
View File
@@ -42,7 +42,6 @@ export type PurchaseItem = {
expedition_vendor_name?: string | null;
received_qty?: number | null;
transport_per_item?: number | null;
transport_total?: number | null;
};
export type BasePurchase = {
@@ -103,10 +102,12 @@ export type UpdateStaffApprovalRequestPayload = {
};
export type CreateManagerApprovalRequestPayload = {
action: 'APPROVED' | 'REJECTED';
notes?: string | null;
};
export type CreateAcceptApprovalRequestPayload = {
action: 'APPROVED' | 'REJECTED';
notes?: string;
items: {
purchase_item_id: number;
@@ -117,7 +118,6 @@ export type CreateAcceptApprovalRequestPayload = {
expedition_vendor_id: number;
received_qty: number;
transport_per_item: number;
transport_total: number;
}[];
};