fix: update purchase type

This commit is contained in:
ValdiANS
2026-05-21 14:44:28 +07:00
parent 80e0bd5a8e
commit 585918cc28
+8
View File
@@ -57,6 +57,8 @@ export type PurchaseItem = {
alias?: string;
category?: string;
} | null;
expedition_qty?: number;
expedition_total?: number;
};
export type BasePurchase = {
@@ -81,6 +83,9 @@ export type BasePurchase = {
po_expedition?: { id: number; refrence: string }[];
created_user?: CreatedUser;
products?: PurchaseItemProduct[];
products_total?: number;
expedition_total?: number;
grand_total_all?: number;
};
export type Purchase = BaseMetadata & BasePurchase;
@@ -149,6 +154,9 @@ export type UpdatePurchaseRequestPayload = CreatePurchaseRequestPayload;
export type PurchaseFilter = {
poDate: string;
start_date?: string;
end_date?: string;
filterBy?: { label: string; value: string };
category: string[];
category_labels?: { label: string; value: number }[];
status: string[];