mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 05:45:46 +00:00
feat(FE): Add finance report API and customer payment types
This commit is contained in:
+47
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user