mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-05 10:46:28 +00:00
Merge branch 'nuranggi' of https://github.com/mohamadihsan/topuponline
This commit is contained in:
@@ -136,7 +136,7 @@ const setReturnSAP = async (invoice, resSAP, trx) => {
|
||||
|
||||
// update invoice
|
||||
t_invoice = await trx('payment.t_d_invoice').update({
|
||||
c_return_sap: resSAP.data.E_DOCUMENTNUMBER
|
||||
c_return_sap: doc_number
|
||||
}, ['c_invoice_no','c_return_sap'])
|
||||
.where({
|
||||
c_invoice_no: invoice.c_invoice_no
|
||||
@@ -144,7 +144,7 @@ const setReturnSAP = async (invoice, resSAP, trx) => {
|
||||
|
||||
// update load balance
|
||||
t_load_balance = await trx('trx.t_d_load_balance').update({
|
||||
c_return_sap: resSAP.data.E_DOCUMENTNUMBER
|
||||
c_return_sap: doc_number
|
||||
}, ['c_load_balance_no', 'c_return_sap'])
|
||||
.whereRaw(`c_load_balance_no IN (SELECT c_load_balance_no FROM payment.t_d_payment_request_topup_online WHERE c_payment = '${invoice.c_invoice_no}')`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user