mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
fix(FE): fixing response data debt supplier
This commit is contained in:
+14
-13
@@ -1,19 +1,26 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
import { Area } from '@/types/api/master-data/area';
|
||||
import { Supplier } from '@/types/api/master-data/supplier';
|
||||
import { Warehouse } from '@/types/api/master-data/warehouse';
|
||||
|
||||
export type DebtSupplier = BaseMetadata & {
|
||||
export interface DebtSupplier {
|
||||
supplier: Supplier;
|
||||
initial_balance: number;
|
||||
rows: DebtRow[];
|
||||
total: DebtTotal;
|
||||
};
|
||||
}
|
||||
|
||||
export type DebtRow = {
|
||||
export interface DebtTotal {
|
||||
aging: number;
|
||||
total_price: number;
|
||||
payment_price: number;
|
||||
debt_price: number;
|
||||
}
|
||||
|
||||
export interface DebtRow {
|
||||
pr_number: string;
|
||||
po_number: string;
|
||||
pr_date: string;
|
||||
po_date: string;
|
||||
received_date: string;
|
||||
aging: number;
|
||||
area: Area;
|
||||
warehouse: Warehouse;
|
||||
@@ -24,11 +31,5 @@ export type DebtRow = {
|
||||
debt_price: number;
|
||||
status: string;
|
||||
travel_number: string;
|
||||
};
|
||||
|
||||
export type DebtTotal = {
|
||||
aging: number;
|
||||
total_price: number;
|
||||
payment_price: number;
|
||||
debt_price: number;
|
||||
};
|
||||
balance: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user