Fix billing case creation reusing old records

This commit is contained in:
DevSoftTech Server 2026-06-04 15:55:08 +05:30
parent 45c36e730c
commit 700741ab9b

View File

@ -159,6 +159,7 @@ class CaseMaster extends BaseController
$existing = $this->db->table('organization_case_master') $existing = $this->db->table('organization_case_master')
->where('case_type', $caseType) ->where('case_type', $caseType)
->where('p_id', $pId) ->where('p_id', $pId)
->where('status', 0)
->get() ->get()
->getResult(); ->getResult();