feat(FE): Add finance report API and customer payment types

This commit is contained in:
rstubryan
2026-01-09 14:41:21 +07:00
parent c61ef5471b
commit e6cee4a93a
2 changed files with 92 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
import { BaseMetadata } from '@/types/api/api-general';
import { BaseCustomer } from '@/types/api/master-data/customer';
import { BaseProduct } from '@/types/api/master-data/product';
export type CustomerPaymentRow = {
no: number;
do_date: string;
payment_date: string;
realization_date: string;
aging: number;
reference: string;
vehicle_plate: string;
qty: number;
weight: number;
average_weight: number;
price: number;
credit_note: number;
final_price: number;
ppn: number;
total: number;
payment: number;
accounts_receivable: number;
notes: string;
pickup_info: string;
sales_marketing: string;
product?: BaseProduct;
};
export type CustomerPaymentSummary = {
total_qty: number;
total_weight: number;
total_initial_amount: number;
total_credit_note: number;
total_final_amount: number;
total_ppn: number;
total_grand_amount: number;
total_payment: number;
total_accounts_receivable: number;
};
export type CustomerPaymentReport = BaseMetadata & {
customer: BaseCustomer;
customer_npwp: string;
customer_address: string;
rows: CustomerPaymentRow[];
summary: CustomerPaymentSummary;
};