mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 22:35:45 +00:00
feat(FE-208,212): enhance PurchaseRequestForm with dummy data and update type definitions for purchase items
This commit is contained in:
Vendored
+12
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user