fix(admin): label supplier payment ledger types
This commit is contained in:
@@ -64,7 +64,8 @@ describe('FinanceCustomerAccountsView delivery', () => {
|
|||||||
expect(page).not.toContain('class="detail-toolbar"')
|
expect(page).not.toContain('class="detail-toolbar"')
|
||||||
expect(page).not.toContain('<AppDrawer')
|
expect(page).not.toContain('<AppDrawer')
|
||||||
for (const marker of ['流水类型', '发生日期', '导出流水', 'listFinanceAccountLedger']) expect(page).toContain(marker)
|
for (const marker of ['流水类型', '发生日期', '导出流水', 'listFinanceAccountLedger']) expect(page).toContain(marker)
|
||||||
for (const code of ['RECONCILIATION_CREATED', 'SETTLEMENT_ISSUED', 'RECEIPT', 'PAYMENT', 'ADJUSTMENT', 'VOID']) expect(page).toContain(code)
|
for (const code of ['RECONCILIATION_CREATED', 'SETTLEMENT_ISSUED', 'RECEIPT',
|
||||||
|
'SUPPLIER_DIRECT_PAID', 'SUPPLIER_ON_ACCOUNT_PAYMENT', 'ADJUSTMENT', 'VOID']) expect(page).toContain(code)
|
||||||
for (const removed of ['FEE_INCLUDED', 'FEE_EXCLUDED', '纳入结算', '排除结算']) expect(page).not.toContain(removed)
|
for (const removed of ['FEE_INCLUDED', 'FEE_EXCLUDED', '纳入结算', '排除结算']) expect(page).not.toContain(removed)
|
||||||
for (const obsolete of ["value: 'FEE_SOURCE'", "value: 'RECONCILIATION'", "value: 'SETTLEMENT'"]) expect(page).not.toContain(obsolete)
|
for (const obsolete of ["value: 'FEE_SOURCE'", "value: 'RECONCILIATION'", "value: 'SETTLEMENT'"]) expect(page).not.toContain(obsolete)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -77,7 +77,9 @@ const columns: DataTableColumn[] = [
|
|||||||
const ledgerQueryFields: QueryField[] = [
|
const ledgerQueryFields: QueryField[] = [
|
||||||
{ key: 'businessType', type: 'select', label: '流水类型', width: 180, placeholder: '全部类型', options: [
|
{ key: 'businessType', type: 'select', label: '流水类型', width: 180, placeholder: '全部类型', options: [
|
||||||
{ label: '生成对账单', value: 'RECONCILIATION_CREATED' }, { label: '结算单生效', value: 'SETTLEMENT_ISSUED' },
|
{ label: '生成对账单', value: 'RECONCILIATION_CREATED' }, { label: '结算单生效', value: 'SETTLEMENT_ISSUED' },
|
||||||
{ label: '收款', value: 'RECEIPT' }, { label: '付款', value: 'PAYMENT' },
|
{ label: '收款', value: 'RECEIPT' },
|
||||||
|
{ label: '供应商线下直付', value: 'SUPPLIER_DIRECT_PAID' },
|
||||||
|
{ label: '供应商账期付款', value: 'SUPPLIER_ON_ACCOUNT_PAYMENT' },
|
||||||
{ label: '账务调整', value: 'ADJUSTMENT' }, { label: '作废', value: 'VOID' },
|
{ label: '账务调整', value: 'ADJUSTMENT' }, { label: '作废', value: 'VOID' },
|
||||||
] },
|
] },
|
||||||
{ key: 'occurredRange', type: 'daterange', label: '发生日期', width: 280 },
|
{ key: 'occurredRange', type: 'daterange', label: '发生日期', width: 280 },
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ describe('finance status presentation', () => {
|
|||||||
expect(financeBusinessTypeLabel('RECONCILIATION_CREATED')).toBe('生成对账单')
|
expect(financeBusinessTypeLabel('RECONCILIATION_CREATED')).toBe('生成对账单')
|
||||||
expect(financeBusinessTypeLabel('SETTLEMENT_ISSUED')).toBe('结算单生效')
|
expect(financeBusinessTypeLabel('SETTLEMENT_ISSUED')).toBe('结算单生效')
|
||||||
expect(financeBusinessTypeLabel('PAYMENT')).toBe('付款')
|
expect(financeBusinessTypeLabel('PAYMENT')).toBe('付款')
|
||||||
|
expect(financeBusinessTypeLabel('SUPPLIER_DIRECT_PAID')).toBe('供应商线下直付')
|
||||||
|
expect(financeBusinessTypeLabel('SUPPLIER_ON_ACCOUNT_PAYMENT')).toBe('供应商账期付款')
|
||||||
expect(financeBusinessTypeLabel('VOID')).toBe('作废')
|
expect(financeBusinessTypeLabel('VOID')).toBe('作废')
|
||||||
expect(financeBusinessTypeLabel('NEW_BUSINESS')).toBe('未知业务类型')
|
expect(financeBusinessTypeLabel('NEW_BUSINESS')).toBe('未知业务类型')
|
||||||
expect(financeDocumentTypeLabel('SETTLEMENT')).toBe('结算单')
|
expect(financeDocumentTypeLabel('SETTLEMENT')).toBe('结算单')
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ const financeBusinessTypeLabels: Record<string, string> = {
|
|||||||
SETTLEMENT_ISSUED: '结算单生效',
|
SETTLEMENT_ISSUED: '结算单生效',
|
||||||
RECEIPT: '收款',
|
RECEIPT: '收款',
|
||||||
PAYMENT: '付款',
|
PAYMENT: '付款',
|
||||||
|
SUPPLIER_DIRECT_PAID: '供应商线下直付',
|
||||||
|
SUPPLIER_ON_ACCOUNT_PAYMENT: '供应商账期付款',
|
||||||
ADJUSTMENT: '账务调整',
|
ADJUSTMENT: '账务调整',
|
||||||
VOID: '作废',
|
VOID: '作废',
|
||||||
// The following values are returned by current Finance read models.
|
// The following values are returned by current Finance read models.
|
||||||
|
|||||||
Reference in New Issue
Block a user