feat(FE-208,212): enhance PurchaseRequestForm with dummy data and update type definitions for purchase items

This commit is contained in:
rstubryan
2025-11-04 13:17:43 +07:00
parent 4828af71b8
commit ef193b9f03
2 changed files with 198 additions and 5 deletions
+12
View File
@@ -1,5 +1,16 @@
import { BaseMetadata } 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';
export type PurchaseItem = {
id: number;
warehouse: Warehouse;
product: Product;
product_warehouse: ProductWarehouse;
sub_qty: number;
};
export type BasePurchase = {
id: number;
@@ -13,6 +24,7 @@ export type BasePurchase = {
notes?: string | null;
deleted_at?: string | null;
created_by: number;
purchase_items?: PurchaseItem[];
};
export type Purchase = BaseMetadata & BasePurchase;