fix(report): include zero-fee OPD visits
Remove the payment-mode exclusion from the OPD patient-list report so it matches dashboard appointment totals.
This commit is contained in:
parent
6a690e80db
commit
9ca9320fee
|
|
@ -96,7 +96,6 @@ class Report extends BaseController
|
|||
->select('o.opd_fee_desc, o.opd_fee_amount, o.payment_mode, o.running_opd')
|
||||
->join('patient_master p', 'p.id = o.p_id', 'left')
|
||||
->where("DATE(o.apointment_date) BETWEEN '{$minRange}' AND '{$maxRange}'", null, false)
|
||||
->where('(o.payment_mode > 0 OR COALESCE(o.running_opd,0)=1)', null, false)
|
||||
->orderBy('o.apointment_date', 'ASC')
|
||||
->orderBy('o.opd_id', 'ASC');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user