refactor(FE): Rename payment fields and add initial balance row

This commit is contained in:
rstubryan
2026-01-14 15:14:33 +07:00
parent 66fa65e4bb
commit 08c28f4077
4 changed files with 129 additions and 51 deletions
+11 -9
View File
@@ -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;
};