mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 23:06:28 +00:00
update
This commit is contained in:
@@ -317,26 +317,6 @@ const paymentRecon = async (req, res) => {
|
||||
},
|
||||
};
|
||||
|
||||
// log debug
|
||||
winston.logger.debug(
|
||||
`${uniqueCode} inserting payment recon transaction...`
|
||||
);
|
||||
|
||||
// insert payment recon transaction
|
||||
await model.insertPaymentReconTransaction(
|
||||
date,
|
||||
now,
|
||||
PaymentReconNumber,
|
||||
bank_ref,
|
||||
reservation_number,
|
||||
amount,
|
||||
"S",
|
||||
"SUCCESS",
|
||||
result.code,
|
||||
result.message.toUpperCase(),
|
||||
result.data
|
||||
);
|
||||
|
||||
// log warn
|
||||
winston.logger.warn(
|
||||
`${uniqueCode} RESPONSE payment recon: ${JSON.stringify(result)}`
|
||||
@@ -345,6 +325,26 @@ const paymentRecon = async (req, res) => {
|
||||
return res.status(200).json(result);
|
||||
}
|
||||
|
||||
// log debug
|
||||
winston.logger.debug(
|
||||
`${uniqueCode} inserting payment recon transaction...`
|
||||
);
|
||||
|
||||
// insert payment recon transaction
|
||||
await model.insertPaymentReconTransaction(
|
||||
date,
|
||||
now,
|
||||
PaymentReconNumber,
|
||||
bank_ref,
|
||||
reservation_number,
|
||||
amount,
|
||||
"S",
|
||||
"SUCCESS",
|
||||
result.code,
|
||||
result.message.toUpperCase(),
|
||||
result.data
|
||||
);
|
||||
|
||||
result = {
|
||||
code: "00",
|
||||
message: "success",
|
||||
@@ -480,7 +480,7 @@ const paymentReconBulk = async (req, res) => {
|
||||
};
|
||||
|
||||
const generatePaymentReconNumber = async (partnerCode, reconDate) => {
|
||||
let counter = '1';
|
||||
let counter = "1";
|
||||
let getLastCounterPaymentReconNo = await model.getLastCounterPaymentReconNo(
|
||||
partnerCode,
|
||||
reconDate
|
||||
|
||||
Reference in New Issue
Block a user