ModelnameSmallcase:GWM
This commit is contained in:
parent
29fb6e4eb6
commit
1803ec8ac1
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
use App\Models\policyPremium1Model;
|
||||
use App\Models\policyPremium2Model;
|
||||
use App\Models\PolicyPremium1Model;
|
||||
use App\Models\PolicyPremium2Model;
|
||||
use CodeIgniter\Model;
|
||||
|
||||
class PolicesModel extends Model
|
||||
@ -36,12 +36,12 @@ class PolicesModel extends Model
|
||||
{
|
||||
|
||||
$premium_slab_data = null;
|
||||
$policyPremium1Model = new policyPremium1Model();
|
||||
$policyPremium1Model = new PolicyPremium1Model();
|
||||
$premium_slab_data = $policyPremium1Model->where(['client_id' => $client_id, 'client_policy_id' => $policy_id, 'is_active' => 1])->findAll();
|
||||
|
||||
if((!count($premium_slab_data)))
|
||||
{
|
||||
$policyPremium2Model = new policyPremium2Model();
|
||||
$policyPremium2Model = new PolicyPremium2Model();
|
||||
$premium_slab_data = $policyPremium2Model->where(['client_id' => $client_id, 'client_policy_id' => $policy_id, 'is_active' => 1])->findAll();
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user