fic for ref number

This commit is contained in:
2026-04-14 10:27:26 -05:00
parent 6e45ce6cf9
commit 88582cbc77

View File

@@ -337,7 +337,7 @@ router.post('/record-payment', async (req, res) => {
CustomerRef: { value: custIds[0] }, CustomerRef: { value: custIds[0] },
TotalAmt: totalAmt, TotalAmt: totalAmt,
TxnDate: payment_date, TxnDate: payment_date,
PaymentRefNum: reference_number || '', PaymentRefNum: (reference_number || '').substring(0, 21) || undefined,
PaymentMethodRef: { value: payment_method_id }, PaymentMethodRef: { value: payment_method_id },
DepositToAccountRef: { value: deposit_to_account_id }, DepositToAccountRef: { value: deposit_to_account_id },
Line: invoicesData.map(inv => ({ Line: invoicesData.map(inv => ({