This commit is contained in:
2026-08-12 18:00:17 +08:00
parent 8e8e123d23
commit 5a1cd862c9
4 changed files with 22 additions and 17 deletions
@@ -207,8 +207,7 @@ async function recoverExistingDemo(context, reportPath) {
continue
}
const approved = await approveAndInclude(context, { feeSourceId: payableIds[index] }, role)
const existing = approved?.statementGenerated === true
? await recoverPayable(context, matrix.payableSettlements[role], payableIds[index]) : null
const existing = await recoverPayable(context, matrix.payableSettlements[role], payableIds[index])
const recoverySupplierId = role === 'apPartial'
? id(matrix.payableSettlements?.apPaid?.supplierId)
: id(fixture.supplier?.supplierId)