fic for ref number
This commit is contained in:
@@ -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 => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user