This commit is contained in:
2022-07-26 18:38:55 +07:00
parent 1f066d8227
commit 469cf3724e
@@ -52,7 +52,7 @@ const checkReservationNumberAndAmount = (reservationNumber) => {
.sum("i_reservation_amount as total_amount")
.groupBy("c_ref_no")
.where("c_reservation_no", reservationNumber)
.where("c_status", "A")
// .where("c_status", "A")
.whereNull("c_payment_recon_no")
.first();
return result;
@@ -62,7 +62,7 @@ const checkReservationNumberAndAmountAlreadyRecon = (reservationNumber) => {
let result = knex("trx.t_d_reservation_balance")
.select("c_payment_recon_no", "d_payment_recon")
.where("c_reservation_no", reservationNumber)
.where("c_status", "A")
// .where("c_status", "A")
.whereNotNull("c_payment_recon_no")
.first();
return result;