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