From 9ca9320fee91984506c59ff3901f65bbf88753cf Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 20 Aug 2026 23:34:37 +0530 Subject: [PATCH] fix(report): include zero-fee OPD visits Remove the payment-mode exclusion from the OPD patient-list report so it matches dashboard appointment totals. --- app/Controllers/Report.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Controllers/Report.php b/app/Controllers/Report.php index ea8aa35..3abbbee 100644 --- a/app/Controllers/Report.php +++ b/app/Controllers/Report.php @@ -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');