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();