修正财务客户名称展示

This commit is contained in:
2026-09-02 19:42:27 +08:00
parent 490fa4e2e5
commit 913a8df7f3
3 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ function jsonRecords(value: unknown): RawResource[] {
function normalizeBill(item: RawResource, customerId = stringValue(item.tenant_id ?? item.customerId)): FinanceBillResource {
return {
id: stringValue(item.id), billNo: stringValue(item.bill_no ?? item.billNo), customerId,
customerName: stringValue(item.customer_name_snapshot ?? item.customerName) || `客户 ${customerId}`,
customerName: stringValue(item.customer_name_snapshot ?? item.customerName),
billDate: stringValue(item.bill_date ?? item.billDate), dueDate: stringValue(item.due_date ?? item.dueDate), currency: 'CNY',
totalAmount: numberValue(item.total_amount ?? item.totalAmount), paidAmount: numberValue(item.received_amount ?? item.receivedAmount ?? item.paidAmount),
outstandingAmount: numberValue(item.outstanding_amount ?? item.outstandingAmount), status: stringValue(item.status) as FinanceBillResource['status'],