This commit is contained in:
2022-12-05 14:53:57 +07:00
parent 7f45c18094
commit fc86976fb5
@@ -466,7 +466,11 @@ const _postingInvoice = async (uniqueCode) => {
);
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} ITEM REFERENCE ${item.reference}`);
let invoiceRetry = await model.getInvoice(item.reference, trx)
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} URL SAP ${parameter.c_value}`);
// let invoiceRetry = await model.getInvoice(item.reference, trx)
let invoiceRetry = await trx('payment.t_d_invoice')
.where('c_invoice_no', '=', code)
.first()
winston.logger.info(`SCHEDULER-RETRY-${uniqueCode} RETRY INVOICE ${JSON.stringify(invoiceRetry)}`);
const cms = await model.setReturnSAP(