mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
feat/FE/US-34/TASK-54-51-slicing-ui-client-side-validation-stock-adjustment
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
import { ProductCategory } from '@/types/api/master-data/product-category';
|
||||
import { Product } from '@/types/api/master-data/product';
|
||||
import { Warehouse } from '../master-data/warehouse';
|
||||
|
||||
export type BaseInventoryAdjustment = {
|
||||
id: number;
|
||||
transaction_type: string;
|
||||
quantity: number;
|
||||
before_quantity: number;
|
||||
after_quantity: number;
|
||||
note: string;
|
||||
product_warehouse_id: number;
|
||||
product_warehouse: {
|
||||
id: number;
|
||||
quantity: number;
|
||||
product_id: number;
|
||||
warehouse_id: number;
|
||||
product: Product;
|
||||
warehouse: Warehouse;
|
||||
};
|
||||
};
|
||||
|
||||
export type InventoryAdjustment = BaseMetadata & BaseInventoryAdjustment;
|
||||
|
||||
export type CreateInventoryAdjustmentPayload = {
|
||||
product_id: number;
|
||||
warehouse_id: number;
|
||||
transaction_type: string;
|
||||
quantity: number;
|
||||
note: string;
|
||||
};
|
||||
Reference in New Issue
Block a user