diff --git a/application/modules/paymentrecon/paymentrecon.model.js b/application/modules/paymentrecon/paymentrecon.model.js index 960b239..f410da0 100644 --- a/application/modules/paymentrecon/paymentrecon.model.js +++ b/application/modules/paymentrecon/paymentrecon.model.js @@ -126,7 +126,7 @@ const insertPaymentReconNumber = (paymentReconNumber) => { const getLastCounterPaymentReconNo = (partnerCode, reconDate) => { let result = knex("trx.t_d_reservation_balance") .select("c_payment_recon_no", "d_payment_recon") - .where("d_payment_recon", reconDate) + .whereRaw("?::date = ?", ['d_payment_recon', reconDate]) .where("c_partner_code", partnerCode) .where("c_status", "A") .whereNotNull("c_payment_recon_no")