refactor(FE): Add invoice download and PO table columns

This commit is contained in:
rstubryan
2026-02-04 14:13:59 +07:00
parent 428d9f33d9
commit 760e9ccd89
3 changed files with 137 additions and 10 deletions
+14 -4
View File
@@ -1,10 +1,15 @@
import { BaseApproval, BaseMetadata } from '@/types/api/api-general';
import {
BaseApproval,
BaseMetadata,
CreatedUser,
} from '@/types/api/api-general';
import { Supplier } from '@/types/api/master-data/supplier';
import { Warehouse } from '@/types/api/master-data/warehouse';
import { Product } from '@/types/api/master-data/product';
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
import { Area } from '@/types/api/master-data/area';
import { Location } from '@/types/api/master-data/location';
import { Uom } from '@/types/api/master-data/uom';
export type PurchaseItemProduct = {
id: number;
@@ -12,14 +17,15 @@ export type PurchaseItemProduct = {
flags?: string[];
ProductPrice?: number;
SellingPrice?: number;
uom?: {
name: string;
};
uom: Uom;
product_category?:
| {
id: number;
name: string;
code: string;
}
| string;
suppliers?: Supplier[];
};
export type PurchaseItem = {
@@ -69,6 +75,10 @@ export type BasePurchase = {
warehouse?: Warehouse;
items?: PurchaseItem[];
latest_approval?: BaseApproval;
requester_name?: string;
po_expedition?: string[];
created_user?: CreatedUser;
products?: PurchaseItemProduct[];
};
export type Purchase = BaseMetadata & BasePurchase;