优化
This commit is contained in:
@@ -25,8 +25,8 @@ function gap(context, name, scope, reason, category = 'finance-settlement-fixtur
|
||||
context.addCoverageGap?.(MODULE, OPTIONS.scenario, scope, reason, category, { marker: context.marker })
|
||||
}
|
||||
|
||||
function receiptBody(context, customerId, voucherFileId, allocations) {
|
||||
return { customerId: Number(customerId), receivedDate: new Date().toISOString().slice(0, 10),
|
||||
export function receiptBody(context, customerId, voucherFileId, allocations) {
|
||||
return { customerId: String(customerId), receivedDate: new Date().toISOString().slice(0, 10),
|
||||
amount: allocations.reduce((sum, item) => sum + item.amount, 0), currency: 'CNY',
|
||||
paymentMethod: 'BANK_TRANSFER', voucherFileIds: [voucherFileId], remark: context.marker, allocations }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user