mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
refactor(FE): Rename payment fields and add initial balance row
This commit is contained in:
+11
-9
@@ -2,12 +2,12 @@ import { BaseCustomer } from '@/types/api/master-data/customer';
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type CustomerPaymentRow = {
|
||||
id: number;
|
||||
do_date: string;
|
||||
realization_date: string;
|
||||
aging_day: number | null;
|
||||
transaction_type: string;
|
||||
transaction_id: number;
|
||||
trans_date: string;
|
||||
delivery_date: string | null;
|
||||
reference: string;
|
||||
vehicle_plate: string[];
|
||||
vehicle_numbers: string;
|
||||
qty: number;
|
||||
weight: number;
|
||||
average_weight: number;
|
||||
@@ -15,12 +15,13 @@ export type CustomerPaymentRow = {
|
||||
credit_note: number;
|
||||
final_price: number;
|
||||
ppn: number;
|
||||
total: number;
|
||||
payment: number;
|
||||
total_price: number;
|
||||
payment_amount: number;
|
||||
accounts_receivable: number;
|
||||
notes: string;
|
||||
aging_day: number;
|
||||
status: string;
|
||||
pickup_info: string;
|
||||
sales_marketing: string;
|
||||
sales_person: string;
|
||||
};
|
||||
|
||||
export type CustomerPaymentSummary = {
|
||||
@@ -37,6 +38,7 @@ export type CustomerPaymentSummary = {
|
||||
|
||||
export type CustomerPaymentReport = BaseMetadata & {
|
||||
customer: BaseCustomer;
|
||||
initial_balance: number;
|
||||
rows: CustomerPaymentRow[];
|
||||
summary: CustomerPaymentSummary;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user