This commit is contained in:
2026-08-17 16:45:46 +08:00
parent 4a9438315c
commit d95c90bd1a
48 changed files with 1217 additions and 374 deletions
+13 -1
View File
@@ -29,12 +29,24 @@ describe('finance status presentation', () => {
it('translates source and ledger codes without exposing unknown values', () => {
expect(financeSourceTypeLabel('CONTAINER_COST')).toBe('整柜成本')
expect(financeBusinessTypeLabel('RECEIPT')).toBe('收款')
expect(financeBusinessTypeLabel('FEE_INCLUDED')).toBe('纳入结算')
expect(financeBusinessTypeLabel('FEE_EXCLUDED')).toBe('排除结算')
expect(financeBusinessTypeLabel('RECONCILIATION_CREATED')).toBe('生成对账单')
expect(financeBusinessTypeLabel('SETTLEMENT_ISSUED')).toBe('结算单生效')
expect(financeBusinessTypeLabel('PAYMENT')).toBe('付款')
expect(financeBusinessTypeLabel('VOID')).toBe('作废')
expect(financeBusinessTypeLabel('NEW_BUSINESS')).toBe('未知业务类型')
expect(financeDocumentTypeLabel('SETTLEMENT')).toBe('结算单')
expect(financeOperationActionLabel('APPROVE')).toBe('审核通过')
expect(financeOperationActionLabel('FEE_SOURCE_REVIEW_APPROVE')).toBe('费用审核通过')
expect(financeOperationActionLabel('RECONCILIATION_ADJUST')).toBe('调整对账单')
expect(financeOperationActionLabel('SETTLEMENT_PAYMENT_CREATE')).toBe('登记收付款')
expect(financeOperationResultLabel('SUCCESS')).toBe('操作成功')
expect(financeDirectionLabel('RECEIVABLE')).toBe('应收')
expect(financeDirectionLabel('PAYABLE')).toBe('应付')
expect(financeDirectionLabel('NEW_DIRECTION')).toBe('未知方向')
expect(financeSourceTypeLabel('NEW_SOURCE')).toBe('其他来源')
expect(financeSourceTypeLabel('NEW_SOURCE')).toBe('未知来源类型')
expect(financeDocumentTypeLabel('NEW_DOCUMENT')).toBe('未知单据类型')
expect(financeOperationActionLabel('NEW_ACTION')).toBe('未知操作')
})
})