feat(finance): show customer credit balances

This commit is contained in:
2026-09-05 11:54:55 +08:00
parent 719a6421c9
commit 46a91fbca0
3 changed files with 21 additions and 6 deletions
+9 -2
View File
@@ -13,11 +13,15 @@ export interface FinanceAccount {
actualBalance: string
frozenBalance: string
availableBalance: string
creditLimit: string
creditUsed: string
creditFrozen: string
availableCredit: string
version: number
updatedAt: string
}
export type AccountChangeType = 'RECHARGE' | 'DEDUCTION' | 'FREEZE' | 'UNFREEZE' | 'CONSUMPTION'
export type AccountChangeType = 'RECHARGE' | 'DEDUCTION' | 'FREEZE' | 'UNFREEZE' | 'CONSUMPTION' | 'CREDIT_LIMIT'
export interface AccountLedgerEntry {
ledgerId: string
@@ -27,7 +31,10 @@ export interface AccountLedgerEntry {
actualBalanceAfter: string
frozenBalanceAfter: string
availableBalanceAfter: string
sourceType: 'CLIENT_RECHARGE' | 'MANUAL_RECHARGE' | 'MANUAL_DEDUCTION'
creditLimitAfter: string
creditUsedAfter: string
availableCreditAfter: string
sourceType: 'CLIENT_RECHARGE' | 'MANUAL_RECHARGE' | 'MANUAL_DEDUCTION' | 'CREDIT_LIMIT_ADJUSTMENT' | string
sourceNo: string
operatorName: string | null
remark: string | null