feat(FE-337): slicing ui form finance and API integration

This commit is contained in:
randy-ar
2025-12-28 04:28:02 +07:00
parent 6ea25aa3b1
commit 731bec5a94
21 changed files with 1522 additions and 192 deletions
+37 -6
View File
@@ -1,4 +1,4 @@
export interface Finance {
export type Finance = {
id: number;
payment_code: string;
reference_number: string;
@@ -12,18 +12,49 @@ export interface Finance {
income_amount: number;
nominal: number;
notes: string;
}
};
export interface FinanceParty {
export type FinanceParty = {
id: number;
name: string;
type: string;
account_number: string;
}
export interface FinanceBank {
};
export type FinanceBank = {
id: number;
name: string;
alias: string;
owner: string;
account_number: string;
}
};
export type CreateFinancePayment = {
party_id: number;
party_type: string;
payment_date: string;
payment_method: string;
bank_id: number;
reference_number: string;
nominal: number;
notes: string;
};
export type UpdateFinancePayment = CreateFinancePayment;
export type CreateInitialBalance = {
party_type: string;
party_id: number;
bank_id: number;
reference_number: string;
initial_balance_type: string;
nominal: number;
note: string;
};
export type UpdateInitialBalance = CreateInitialBalance;
export type CreateInjection = {
bank_id: number;
adjustment_date: string;
nominal: number;
notes: string;
};
export type UpdateInjection = CreateInjection;