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; alias?: string;
category?: string; category?: string;
} | null; } | null;
expedition_qty?: number;
expedition_total?: number;
}; };
export type BasePurchase = { export type BasePurchase = {
@@ -81,6 +83,9 @@ export type BasePurchase = {
po_expedition?: { id: number; refrence: string }[]; po_expedition?: { id: number; refrence: string }[];
created_user?: CreatedUser; created_user?: CreatedUser;
products?: PurchaseItemProduct[]; products?: PurchaseItemProduct[];
products_total?: number;
expedition_total?: number;
grand_total_all?: number;
}; };
export type Purchase = BaseMetadata & BasePurchase; export type Purchase = BaseMetadata & BasePurchase;
@@ -149,6 +154,9 @@ export type UpdatePurchaseRequestPayload = CreatePurchaseRequestPayload;
export type PurchaseFilter = { export type PurchaseFilter = {
poDate: string; poDate: string;
start_date?: string;
end_date?: string;
filterBy?: { label: string; value: string };
category: string[]; category: string[];
category_labels?: { label: string; value: number }[]; category_labels?: { label: string; value: number }[];
status: string[]; status: string[];