bug fix generate invoice online topup

This commit is contained in:
Mohamad Ihsan
2026-05-08 14:09:03 +07:00
parent 18787a3605
commit 9a4d741c05
@@ -201,7 +201,7 @@ const setReturnSAP = async (invoice, resSAP, trx, posting = false, c_invoice_no)
no_doksap: resSAP.data.E_DOCUMENTNUMBER ? resSAP.data.E_DOCUMENTNUMBER : null,
status1: resSAP.message ? resSAP.message : null
}, ['file_name', 'status0']).where({
reference: c_invoice_no
no_dok: c_invoice_no
})
if (posting) {
@@ -228,7 +228,7 @@ const setReturnSAP = async (invoice, resSAP, trx, posting = false, c_invoice_no)
no_doksap: doc_number,
status1: resSAP.message ? resSAP.message : null
}, ['file_name', 'status0']).where({
reference: c_invoice_no
no_dok: c_invoice_no
})
// update invoice
@@ -259,7 +259,7 @@ const setReturnSAP = async (invoice, resSAP, trx, posting = false, c_invoice_no)
no_doksap: resSAP.data.E_DOCUMENTNUMBER ? resSAP.data.E_DOCUMENTNUMBER : null,
status1: resSAP.message ? resSAP.message : null
}, ['file_name', 'status0']).where({
reference: c_invoice_no
no_dok: c_invoice_no
})
// update invoice