mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
refactor(FE-363): Extract row and summary types for logistic report
This commit is contained in:
+14
-4
@@ -3,9 +3,7 @@ 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: {
|
|
||||||
supplier: Supplier;
|
|
||||||
receive_date: string;
|
receive_date: string;
|
||||||
po_date: string;
|
po_date: string;
|
||||||
po_number: string;
|
po_number: string;
|
||||||
@@ -19,5 +17,17 @@ export type LogisticPurchasePerSupplierReport = BaseMetadata & {
|
|||||||
total_amount: number;
|
total_amount: number;
|
||||||
expedition: string;
|
expedition: string;
|
||||||
delivery_number: 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