mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
refactor(FE-63,65): update Movement types and schema to include area and location for warehouses
This commit is contained in:
+19
-5
@@ -1,23 +1,37 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { Supplier } from '@/types/api/master-data/supplier';
|
||||
import { Warehouse } from '@/types/api/master-data/warehouse';
|
||||
|
||||
type MovementWarehouse = {
|
||||
id: number;
|
||||
name: string;
|
||||
location: {
|
||||
id: number;
|
||||
name: string;
|
||||
} | null;
|
||||
area: {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type BaseMovement = {
|
||||
id: number;
|
||||
transfer_reason: string;
|
||||
transfer_date: string;
|
||||
source_warehouse: Warehouse;
|
||||
destination_warehouse: Warehouse;
|
||||
source_warehouse: MovementWarehouse;
|
||||
destination_warehouse: MovementWarehouse;
|
||||
details: {
|
||||
id: number;
|
||||
product_id: number;
|
||||
product: {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
quantity: number;
|
||||
before_quantity: number;
|
||||
after_quantity: number;
|
||||
}[];
|
||||
deliveries: {
|
||||
id: number;
|
||||
supplier_id: number;
|
||||
supplier: Supplier;
|
||||
vehicle_plate: string;
|
||||
driver_name: string;
|
||||
|
||||
Reference in New Issue
Block a user