mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 17:46:27 +00:00
update
This commit is contained in:
@@ -466,8 +466,8 @@ const _postingInvoice = async (uniqueCode) => {
|
||||
);
|
||||
|
||||
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} ITEM REFERENCE ${item.reference}`);
|
||||
let invoice = await model.getInvoice(item.reference, trx)
|
||||
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} RETRY INVOICE ${JSON.stringify(invoice)}`);
|
||||
let invoiceRetry = await model.getInvoice(item.reference, trx)
|
||||
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} RETRY INVOICE ${JSON.stringify(invoiceRetry)}`);
|
||||
|
||||
const cms = await model.setReturnSAP(
|
||||
invoice,
|
||||
|
||||
@@ -241,9 +241,7 @@ const getParameterSetting = async(trx, code) => {
|
||||
|
||||
const getInvoice = async(code, trx) => {
|
||||
|
||||
const result = await trx('payment.t_d_invoice').select([
|
||||
"*"
|
||||
])
|
||||
const result = await trx('payment.t_d_invoice')
|
||||
.where('c_invoice_no', '=', code)
|
||||
.first()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user