mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
refactor(FE-363): Extract row and summary types for logistic report
This commit is contained in:
+27
-17
@@ -3,21 +3,31 @@ import { Supplier } from '@/types/api/supplier/supplier';
|
|||||||
import { Product } from '@/types/api/product/product';
|
import { Product } from '@/types/api/product/product';
|
||||||
import { Warehouse } from '@/types/api/warehouse/warehouse';
|
import { Warehouse } from '@/types/api/warehouse/warehouse';
|
||||||
|
|
||||||
export type LogisticPurchasePerSupplierReport = BaseMetadata & {
|
export type LogisticPurchasePerSupplierReportRow = {
|
||||||
rows: {
|
receive_date: string;
|
||||||
supplier: Supplier;
|
po_date: string;
|
||||||
receive_date: string;
|
po_number: string;
|
||||||
po_date: string;
|
product: Product;
|
||||||
po_number: string;
|
warehouse: Warehouse;
|
||||||
product: Product;
|
qty: number;
|
||||||
warehouse: Warehouse;
|
unit_price: number;
|
||||||
qty: number;
|
purchase_value: number;
|
||||||
unit_price: number;
|
transport_unit_price: number;
|
||||||
purchase_value: number;
|
transport_value: number;
|
||||||
transport_unit_price: number;
|
total_amount: number;
|
||||||
transport_value: number;
|
expedition: string;
|
||||||
total_amount: number;
|
delivery_number: string;
|
||||||
expedition: string;
|
};
|
||||||
delivery_number: string;
|
|
||||||
}[];
|
export type LogisticPurchasePerSupplierSummary = {
|
||||||
|
total_qty: number;
|
||||||
|
total_purchase_value: number;
|
||||||
|
total_transport_value: number;
|
||||||
|
total_amount: number;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type LogisticPurchasePerSupplierReport = BaseMetadata & {
|
||||||
|
supplier: Supplier;
|
||||||
|
rows: LogisticPurchasePerSupplierReportRow[];
|
||||||
|
summary: LogisticPurchasePerSupplierSummary;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user