diff --git a/app/Helpers/utility_helper.php b/app/Helpers/utility_helper.php index 048202c2..788ccbbd 100755 --- a/app/Helpers/utility_helper.php +++ b/app/Helpers/utility_helper.php @@ -986,7 +986,7 @@ if (!function_exists('checkDuplicateClaim')) { $ticketMaster = new TicketMasterModel(); $query = $ticketMaster->where('is_active', 1); - if(!empty($params['doa']) && !empty($params['claim_amount'])){ + if(empty($params['doa']) && empty($params['claim_amount'])){ return false; } @@ -1004,6 +1004,7 @@ if (!function_exists('checkDuplicateClaim')) { } $result = $query->countAllResults(); + // print_r($ticketMaster->getLastQuery()->getQuery()); die; if($result > 0){ return true; }else{ return false; } } }