bug fixed field

This commit is contained in:
2025-06-30 21:38:43 +07:00
parent f73accc275
commit cbb1d353a3
+2 -2
View File
@@ -392,7 +392,7 @@ const getTopUpCashlessInternal = async (trx, code, date, invoice) => {
.where('tdpr.d_payment', '=', date)
.where('tdsi.c_invoice_no', '=', invoice)
.where('tdpr.c_status', '=', 'S')
.whereNotNull('tdsi.c_return_cash_in_sap')
.whereNotNull('tdsi.c_return_sap')
.whereRaw(
`tdskm.c_topup_no NOT IN (SELECT c_reservation_no FROM payment.t_d_cash_in_detail WHERE b_reversal IS NOT TRUE)`
);
@@ -643,7 +643,7 @@ const getPartnerReconTopUpCashlessInternal = async (trx) => {
})
.where('tdsi.c_status', '!=', 'X')
.where('tdpr.c_status', '=', 'S')
.whereNotNull('tdsi.c_return_cash_in_sap')
.whereNotNull('tdsi.c_return_sap')
.whereNull('tdskm.i_cash_in')
.groupBy([
'tmp.c_code',