mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
refactor(FE): Refactor inventory adjustment form
This commit is contained in:
+19
-15
@@ -1,31 +1,35 @@
|
||||
import { Product } from '@/types/api/master-data/product';
|
||||
import { Warehouse } from '@/types/api/master-data/warehouse';
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { Location } from '@/types/api/master-data/location';
|
||||
import { ProjectFlock } from '@/types/api/project-flock';
|
||||
|
||||
export type BaseInventoryAdjustment = {
|
||||
id: number;
|
||||
adj_number: string;
|
||||
transaction_type: string;
|
||||
transaction_subtype: string;
|
||||
function_code: string;
|
||||
qty: number;
|
||||
price: number;
|
||||
grand_total: number;
|
||||
increase: number;
|
||||
decrease: number;
|
||||
note: string;
|
||||
notes: string;
|
||||
location: Location;
|
||||
project_flock: ProjectFlock;
|
||||
product_warehouse_id: number;
|
||||
product_warehouse: {
|
||||
id: number;
|
||||
quantity: number;
|
||||
product_id: number;
|
||||
warehouse_id: number;
|
||||
product: Product;
|
||||
warehouse: Warehouse;
|
||||
};
|
||||
product_warehouse: ProductWarehouse;
|
||||
project_flock_kandang_id?: number;
|
||||
};
|
||||
|
||||
export type InventoryAdjustment = BaseMetadata & BaseInventoryAdjustment;
|
||||
|
||||
export type CreateInventoryAdjustmentPayload = {
|
||||
project_flock_kandang_id: number;
|
||||
product_id: number;
|
||||
warehouse_id: number;
|
||||
transaction_type: string;
|
||||
quantity: number;
|
||||
note: string;
|
||||
transaction_subtype: string;
|
||||
qty: number;
|
||||
price: number;
|
||||
notes: string;
|
||||
};
|
||||
|
||||
export type UpdateInventoryAdjustmentPayload =
|
||||
|
||||
Reference in New Issue
Block a user