mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
feat(FE-328-329-330): Adding Feature Inventory Product Stocks
This commit is contained in:
Vendored
+45
@@ -0,0 +1,45 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { ProductWarehouse } from '@/types/api/inventory/product-warehouse';
|
||||
import { ProductCategory } from '@/types/api/master-data/product-category';
|
||||
import { Supplier } from '@/types/api/master-data/supplier';
|
||||
import { Uom } from '@/types/api/master-data/uom';
|
||||
|
||||
export type BaseInventoryProduct = {
|
||||
id: number;
|
||||
name: string;
|
||||
brand: string;
|
||||
sku: string;
|
||||
product_price: number;
|
||||
selling_price?: number;
|
||||
tax?: number;
|
||||
expiry_period?: number;
|
||||
uom: Uom;
|
||||
product_category: ProductCategory;
|
||||
suppliers: Supplier[];
|
||||
flags: string[];
|
||||
product_warehouses?: ProductWarehouseStock[];
|
||||
};
|
||||
|
||||
export type ProductWarehouseStock = {
|
||||
id: number;
|
||||
product_id: number;
|
||||
warehouse_id: number;
|
||||
warehouse_name: string;
|
||||
location: Location | string;
|
||||
current_stock: number;
|
||||
stock_logs: StockLog[];
|
||||
};
|
||||
|
||||
export type StockLog = {
|
||||
id: number;
|
||||
increase: number;
|
||||
decrease: number;
|
||||
loggable_type: string;
|
||||
loggable_id: number;
|
||||
notes: string;
|
||||
product_warehouse_id: number;
|
||||
created_by: number;
|
||||
created_at: string;
|
||||
};
|
||||
|
||||
export type InventoryProduct = BaseInventoryProduct & BaseMetadata;
|
||||
Reference in New Issue
Block a user