From 700741ab9b1e2157d313ee4f8059c03df0ff252a Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 4 Jun 2026 15:55:08 +0530 Subject: [PATCH] Fix billing case creation reusing old records --- app/Controllers/Billing/CaseMaster.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Controllers/Billing/CaseMaster.php b/app/Controllers/Billing/CaseMaster.php index 31542d8..da87ce1 100644 --- a/app/Controllers/Billing/CaseMaster.php +++ b/app/Controllers/Billing/CaseMaster.php @@ -159,6 +159,7 @@ class CaseMaster extends BaseController $existing = $this->db->table('organization_case_master') ->where('case_type', $caseType) ->where('p_id', $pId) + ->where('status', 0) ->get() ->getResult();