mirror of
https://github.com/mohamadihsan/topuponline.git
synced 2026-12-06 23:26:28 +00:00
update generate cash-in
This commit is contained in:
@@ -225,6 +225,7 @@ const getReserve = async(trx, code, date, invoice) => {
|
||||
})
|
||||
.leftJoin('payment.t_d_invoice as tdi', function () {
|
||||
this.on('tdi.c_invoice_no', '=', 'tdlb.c_invoice_no')
|
||||
.orOn('tdi.c_invoice_no', '=', 'tdrb.c_invoice_no')
|
||||
})
|
||||
.leftJoin('payment.t_d_payment_recon as tdpr', function () {
|
||||
this.on('tdpr.c_reservation_no', '=', 'tdrb.c_reservation_no')
|
||||
@@ -266,13 +267,15 @@ const getPartnerRecon = async(trx) => {
|
||||
this.on('tdrb.c_load_balance_no', '=', 'tdlb.c_load_balance_no')
|
||||
})
|
||||
.leftJoin('payment.t_d_invoice as tdi', function () {
|
||||
this.on('tdi.c_invoice_no', '=', 'tdlb.c_invoice_no')
|
||||
this
|
||||
.on('tdi.c_invoice_no', '=', 'tdlb.c_invoice_no')
|
||||
.orOn('tdi.c_invoice_no', '=', 'tdrb.c_invoice_no')
|
||||
})
|
||||
.leftJoin('payment.t_d_payment_recon as tdpr', function () {
|
||||
this.on('tdpr.c_reservation_no', '=', 'tdrb.c_reservation_no')
|
||||
})
|
||||
.leftJoin('public.t_m_partner as tmp', function () {
|
||||
this.on('tmp.c_code', '=', 'tdrb.c_partner_code')
|
||||
this.on('tmp.i_partner', '=', 'tdrb.i_partner')
|
||||
})
|
||||
|
||||
.where("tdrb.c_status", "=", "A")
|
||||
|
||||
Reference in New Issue
Block a user