CHANGE_ in getEmployeePolicy GMC api : Premium and gst value : GWM
This commit is contained in:
parent
2e15df607a
commit
9f3fba0e50
@ -285,20 +285,27 @@ class EmployeeRestController extends AdminController
|
||||
{
|
||||
$terms = $this->clientPolicyModel->where('id',$client_policy_id)->get()->getRow()->policy_terms;
|
||||
|
||||
$is_payable_obj = json_decode($terms)->is_payable_employee;
|
||||
if(isset(json_decode($terms)->is_payable_employee))
|
||||
{
|
||||
$is_payable_obj = json_decode($terms)->is_payable_employee;
|
||||
|
||||
if ($relationship === 'Mother' || $relationship === 'Father' || $relationship === 'Father in Law' || $relationship === 'Mother in Law')
|
||||
{
|
||||
return $is_payable_obj->elders;
|
||||
}
|
||||
else if($relationship === 'Son' || $relationship === 'Daughter')
|
||||
{
|
||||
return $is_payable_obj->childern;
|
||||
}
|
||||
else if($relationship === 'Spouse')
|
||||
{
|
||||
return $is_payable_obj->spouse;
|
||||
if ($relationship === 'Mother' || $relationship === 'Father' || $relationship === 'Father in Law' || $relationship === 'Mother in Law')
|
||||
{
|
||||
return $is_payable_obj->elders;
|
||||
}
|
||||
else if($relationship === 'Son' || $relationship === 'Daughter')
|
||||
{
|
||||
return $is_payable_obj->childern;
|
||||
}
|
||||
else if($relationship === 'Spouse')
|
||||
{
|
||||
return $is_payable_obj->spouse;
|
||||
}
|
||||
|
||||
}else{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user