This commit is contained in:
2026-08-14 10:09:46 +08:00
parent 0bc752a2be
commit 66089f9b99
31 changed files with 719 additions and 141 deletions
@@ -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 }
}