mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 22:46:26 +00:00
Update
This commit is contained in:
@@ -181,19 +181,6 @@ const _generateInvoice = async (invoiceDate, uniqueCode, repost) => {
|
||||
|
||||
if (invoice.length > 0)
|
||||
for (const key in invoice) {
|
||||
winston.logger.info(
|
||||
`SCHEDULER-FB70-${uniqueCode} insert payment history et : ${JSON.stringify(
|
||||
invoice
|
||||
)}`
|
||||
);
|
||||
|
||||
let history = await model.writePaynentHistory(invoice[key], trx);
|
||||
|
||||
winston.logger.info(
|
||||
`SCHEDULER-FB70-${uniqueCode} result insert payment history et : ${JSON.stringify(
|
||||
history
|
||||
)}`
|
||||
);
|
||||
|
||||
winston.logger.info(
|
||||
`SCHEDULER-FB70-${uniqueCode} insert posting et ${JSON.stringify(
|
||||
@@ -328,7 +315,7 @@ const _generateInvoice = async (invoiceDate, uniqueCode, repost) => {
|
||||
)}`
|
||||
);
|
||||
|
||||
const cms = await model.setReturnSAP(invoice[key], resSAP, trx);
|
||||
const cms = await model.setReturnSAP(invoice[key], resSAP, trx, true);
|
||||
|
||||
winston.logger.info(
|
||||
`SCHEDULER-FB70-${uniqueCode} RESULT CMS : ${JSON.stringify(cms)}`
|
||||
@@ -462,7 +449,8 @@ const _postingInvoice = async (uniqueCode) => {
|
||||
const cms = await model.setReturnSAP(
|
||||
{ c_invoice_no: item.reference },
|
||||
resSAP,
|
||||
trx
|
||||
trx,
|
||||
false
|
||||
);
|
||||
|
||||
winston.logger.info(
|
||||
|
||||
Reference in New Issue
Block a user