This commit is contained in:
2023-02-22 00:32:01 +07:00
parent f30ee86552
commit f10ff80284
@@ -2172,17 +2172,17 @@ const updateReservationAndLoadingBalance = async (
// log debug
winston.logger.debug(
`${uniqueCode} DDDDDDDDDDDDDDDDDDDDDDDDDDDDDD ${JSON.stringify(
`${uniqueCode} detail load balance with reservation no : ${JSON.stringify(
reservationNumber
)}`
);
// log debug
winston.logger.debug(
`${uniqueCode} updating reservation and insert new load balance transaction...`
);
if (detailLoadBalance.length > 0) {
// log debug
winston.logger.debug(
`${uniqueCode} updating reservation and insert new load balance transaction...`
);
// update reservation and load balance transaction
let insert = await model.updateReservationAndInsertLoadingBalance(
reservationNumber,
@@ -2192,6 +2192,11 @@ const updateReservationAndLoadingBalance = async (
flag
);
// log debug
winston.logger.debug(
`${uniqueCode} CCCCCCCCCCCCCCCCCCCCCCCCC ${JSON.stringify(insert)}`
);
if (insert > 0) {
// log debug
winston.logger.debug(