GWM : changes in is_premium_summery
This commit is contained in:
parent
32d095f2b9
commit
a4396fbb66
@ -1157,12 +1157,11 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
$array->mapped_family_floaters = $self;
|
$array->mapped_family_floaters = $self;
|
||||||
$array->type = 'GPA';
|
$array->type = 'GPA';
|
||||||
if($array->is_premium_summery == 1){
|
|
||||||
$array->si_value = $si_value;
|
$array->si_value = $si_value;
|
||||||
|
if($array->is_premium_summery == 1){
|
||||||
$array->si_premium_value = $si_premium_value;
|
$array->si_premium_value = $si_premium_value;
|
||||||
$array->si_gst_value = $si_gst_value;
|
$array->si_gst_value = $si_gst_value;
|
||||||
}else{
|
}else{
|
||||||
$array->si_value = 0;
|
|
||||||
$array->si_premium_value = 0;
|
$array->si_premium_value = 0;
|
||||||
$array->si_gst_value = 0;
|
$array->si_gst_value = 0;
|
||||||
}
|
}
|
||||||
@ -1306,12 +1305,11 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
$array->mapped_family_floaters = $data;
|
$array->mapped_family_floaters = $data;
|
||||||
$array->type = "GMC";
|
$array->type = "GMC";
|
||||||
if($array->is_premium_summery == 1){
|
|
||||||
$array->family_floaters_of_dependent_and_si_value = $dependent_and_si_value > 0 ? $dependent_and_si_value : 0;
|
$array->family_floaters_of_dependent_and_si_value = $dependent_and_si_value > 0 ? $dependent_and_si_value : 0;
|
||||||
|
if($array->is_premium_summery == 1){
|
||||||
$array->family_floaters_of_dependent_and_si_premium_value = $dependent_and_si_premium_value > 0 ? round($dependent_and_si_premium_value) : 0;
|
$array->family_floaters_of_dependent_and_si_premium_value = $dependent_and_si_premium_value > 0 ? round($dependent_and_si_premium_value) : 0;
|
||||||
$array->family_floaters_of_dependent_and_gst_value = $dependent_and_si_gst_value > 0 ? round($dependent_and_si_gst_value) : 0;
|
$array->family_floaters_of_dependent_and_gst_value = $dependent_and_si_gst_value > 0 ? round($dependent_and_si_gst_value) : 0;
|
||||||
}else{
|
}else{
|
||||||
$array->family_floaters_of_dependent_and_si_value = 0;
|
|
||||||
$array->family_floaters_of_dependent_and_si_premium_value = 0;
|
$array->family_floaters_of_dependent_and_si_premium_value = 0;
|
||||||
$array->family_floaters_of_dependent_and_gst_value = 0;
|
$array->family_floaters_of_dependent_and_gst_value = 0;
|
||||||
}
|
}
|
||||||
@ -1512,12 +1510,11 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
$array->mapped_family_floaters = $data;
|
$array->mapped_family_floaters = $data;
|
||||||
$array->type = "GMC - Parents";
|
$array->type = "GMC - Parents";
|
||||||
if($array->is_premium_summery == 1){
|
|
||||||
$array->family_floaters_of_dependent_and_si_value = $dependent_and_si_value > 0 ? $dependent_and_si_value : 0;
|
$array->family_floaters_of_dependent_and_si_value = $dependent_and_si_value > 0 ? $dependent_and_si_value : 0;
|
||||||
|
if($array->is_premium_summery == 1){
|
||||||
$array->family_floaters_of_dependent_and_si_premium_value = $dependent_and_si_premium_value > 0 ? round($dependent_and_si_premium_value) : 0;
|
$array->family_floaters_of_dependent_and_si_premium_value = $dependent_and_si_premium_value > 0 ? round($dependent_and_si_premium_value) : 0;
|
||||||
$array->family_floaters_of_dependent_and_gst_value = $dependent_and_si_gst_value > 0 ? round($dependent_and_si_gst_value) : 0;
|
$array->family_floaters_of_dependent_and_gst_value = $dependent_and_si_gst_value > 0 ? round($dependent_and_si_gst_value) : 0;
|
||||||
}else{
|
}else{
|
||||||
$array->family_floaters_of_dependent_and_si_value = 0;
|
|
||||||
$array->family_floaters_of_dependent_and_si_premium_value = 0;
|
$array->family_floaters_of_dependent_and_si_premium_value = 0;
|
||||||
$array->family_floaters_of_dependent_and_gst_value = 0;
|
$array->family_floaters_of_dependent_and_gst_value = 0;
|
||||||
}
|
}
|
||||||
@ -1531,7 +1528,7 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
public function getAdditionalGPAPolicy($empData,$policy_type,$emp_code,$client_id,$client_branch_id,$login_by_hr)
|
public function getAdditionalGPAPolicy($empData,$policy_type,$emp_code,$client_id,$client_branch_id,$login_by_hr)
|
||||||
{
|
{
|
||||||
$checkPolicyExist = $this->clientPolicyModel->select('client_policy.id as ClientPolicyId , client_policy.client_id as ClientId, client_policy.policy_type_id as policy_type_id, client_policy.is_addon as is_addon , client_policy.open_for_enrollment as OpenForEnrollment , client_policy.inception_type as inception_type , client_policy.policy_terms as Policy_Terms , client_policy.enrolment_visibility')
|
$checkPolicyExist = $this->clientPolicyModel->select('client_policy.id as ClientPolicyId , client_policy.client_id as ClientId, client_policy.policy_type_id as policy_type_id, client_policy.is_addon as is_addon , client_policy.open_for_enrollment as OpenForEnrollment , client_policy.inception_type as inception_type , client_policy.policy_terms as Policy_Terms , client_policy.enrolment_visibility,client_policy.is_premium_summery')
|
||||||
->where('client_policy.policy_type_id', $policy_type )
|
->where('client_policy.policy_type_id', $policy_type )
|
||||||
->where('client_policy.is_addon', 1 )
|
->where('client_policy.is_addon', 1 )
|
||||||
->where('client_policy.client_id', $client_id )
|
->where('client_policy.client_id', $client_id )
|
||||||
@ -1563,12 +1560,11 @@ class EmployeeRestController extends AdminController
|
|||||||
|
|
||||||
$array->type = $policyTypeData->policy_type;
|
$array->type = $policyTypeData->policy_type;
|
||||||
$array->Policy_Name = $policyTypeData->long_name;
|
$array->Policy_Name = $policyTypeData->long_name;
|
||||||
if($array->is_premium_summery == 1){
|
|
||||||
$array->si_value = $si_value;
|
$array->si_value = $si_value;
|
||||||
|
if($array->is_premium_summery == 1){
|
||||||
$array->si_premium_value = $si_premium_value;
|
$array->si_premium_value = $si_premium_value;
|
||||||
$array->si_gst_value = $si_gst_value;
|
$array->si_gst_value = $si_gst_value;
|
||||||
}else{
|
}else{
|
||||||
$array->si_value = 0;
|
|
||||||
$array->si_premium_value = 0;
|
$array->si_premium_value = 0;
|
||||||
$array->si_gst_value = 0;
|
$array->si_gst_value = 0;
|
||||||
}
|
}
|
||||||
@ -1977,12 +1973,11 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$responce['family_floaters_of_dependent_and_si_array'] = $data;
|
$responce['family_floaters_of_dependent_and_si_array'] = $data;
|
||||||
if($array['is_premium_summery']){
|
|
||||||
$responce['family_floaters_of_dependent_and_si_value'] = $dependent_and_si_value > 0 ? $dependent_and_si_value : 0;
|
$responce['family_floaters_of_dependent_and_si_value'] = $dependent_and_si_value > 0 ? $dependent_and_si_value : 0;
|
||||||
|
if($array['is_premium_summery']){
|
||||||
$responce['family_floaters_of_dependent_and_si_premium_value'] = $dependent_and_si_premium_value > 0 ? round($dependent_and_si_premium_value) : 0;
|
$responce['family_floaters_of_dependent_and_si_premium_value'] = $dependent_and_si_premium_value > 0 ? round($dependent_and_si_premium_value) : 0;
|
||||||
$responce['family_floaters_of_dependent_and_gst_value'] = $dependent_and_si_gst_value > 0 ? round($dependent_and_si_gst_value) : 0;
|
$responce['family_floaters_of_dependent_and_gst_value'] = $dependent_and_si_gst_value > 0 ? round($dependent_and_si_gst_value) : 0;
|
||||||
}else{
|
}else{
|
||||||
$responce['family_floaters_of_dependent_and_si_value'] = 0;
|
|
||||||
$responce['family_floaters_of_dependent_and_si_premium_value'] = 0;
|
$responce['family_floaters_of_dependent_and_si_premium_value'] = 0;
|
||||||
$responce['family_floaters_of_dependent_and_gst_value'] = 0;
|
$responce['family_floaters_of_dependent_and_gst_value'] = 0;
|
||||||
}
|
}
|
||||||
@ -2046,12 +2041,11 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$responce['family_floaters_of_only_si_array'] = $only_si_array;
|
$responce['family_floaters_of_only_si_array'] = $only_si_array;
|
||||||
if($array['is_premium_summery']){
|
|
||||||
$responce['family_floaters_of_only_si_value'] = $only_si_value;
|
$responce['family_floaters_of_only_si_value'] = $only_si_value;
|
||||||
|
if($array['is_premium_summery']){
|
||||||
$responce['family_floaters_of_only_si_premium_value'] = round($only_si_premium_value);
|
$responce['family_floaters_of_only_si_premium_value'] = round($only_si_premium_value);
|
||||||
$responce['family_floaters_of_only_si_gst_value'] = $only_si_gst_value;
|
$responce['family_floaters_of_only_si_gst_value'] = $only_si_gst_value;
|
||||||
}else{
|
}else{
|
||||||
$responce['family_floaters_of_only_si_value'] = 0;
|
|
||||||
$responce['family_floaters_of_only_si_premium_value'] = 0;
|
$responce['family_floaters_of_only_si_premium_value'] = 0;
|
||||||
$responce['family_floaters_of_only_si_gst_value'] = 0;
|
$responce['family_floaters_of_only_si_gst_value'] = 0;
|
||||||
}
|
}
|
||||||
@ -2109,12 +2103,11 @@ class EmployeeRestController extends AdminController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$responce['family_floaters_of_only_si_array'] = $only_si_array;
|
$responce['family_floaters_of_only_si_array'] = $only_si_array;
|
||||||
if($array['is_premium_summery']){
|
|
||||||
$responce['family_floaters_of_only_si_value'] = $only_si_value;
|
$responce['family_floaters_of_only_si_value'] = $only_si_value;
|
||||||
|
if($array['is_premium_summery']){
|
||||||
$responce['family_floaters_of_only_si_premium_value'] = round($only_si_premium_value);
|
$responce['family_floaters_of_only_si_premium_value'] = round($only_si_premium_value);
|
||||||
$responce['family_floaters_of_only_si_gst_value'] = round($only_si_gst_value);
|
$responce['family_floaters_of_only_si_gst_value'] = round($only_si_gst_value);
|
||||||
}else{
|
}else{
|
||||||
$responce['family_floaters_of_only_si_value'] = 0;
|
|
||||||
$responce['family_floaters_of_only_si_premium_value'] = 0;
|
$responce['family_floaters_of_only_si_premium_value'] = 0;
|
||||||
$responce['family_floaters_of_only_si_gst_value'] = 0;
|
$responce['family_floaters_of_only_si_gst_value'] = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user