This commit is contained in:
2022-12-05 14:49:20 +07:00
parent 08dd94ff64
commit 7f45c18094
2 changed files with 3 additions and 5 deletions
@@ -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()