mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:46:28 +00:00
bug fix generate invoice online topup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user