Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev
This commit is contained in:
commit
6891c1a4d9
@ -1123,6 +1123,7 @@ class EmployeeController extends AdminController
|
|||||||
'{FRONT_CARD}' => base_url() . 'public/uploads/template_bg/' . $value['front_card'],
|
'{FRONT_CARD}' => base_url() . 'public/uploads/template_bg/' . $value['front_card'],
|
||||||
'{BACK_CARD}' => base_url() . 'public/uploads/template_bg/' . $value['back_card'],
|
'{BACK_CARD}' => base_url() . 'public/uploads/template_bg/' . $value['back_card'],
|
||||||
'{EMP_ID}' => $value['emp_code'],
|
'{EMP_ID}' => $value['emp_code'],
|
||||||
|
'{SI_AMT}' => $value['basic_cover_si'],
|
||||||
'{CORPORATE_NAME}' => $value['client_name'],
|
'{CORPORATE_NAME}' => $value['client_name'],
|
||||||
'{AGE}' => $value['emp_age'],
|
'{AGE}' => $value['emp_age'],
|
||||||
'{TPA_NAME}' => $value['tpa_name'],
|
'{TPA_NAME}' => $value['tpa_name'],
|
||||||
@ -1304,10 +1305,9 @@ class EmployeeController extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Preview E-Card Template function
|
||||||
public function previewTemplate($id = null)
|
public function previewTemplate($id = null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
$value = [
|
$value = [
|
||||||
'tpa_id' => 'TPA12345',
|
'tpa_id' => 'TPA12345',
|
||||||
'name' => 'John Doe',
|
'name' => 'John Doe',
|
||||||
@ -1324,10 +1324,10 @@ class EmployeeController extends AdminController
|
|||||||
'emp_age' => 39,
|
'emp_age' => 39,
|
||||||
'tpa_name' => 'Example TPA',
|
'tpa_name' => 'Example TPA',
|
||||||
'insurer_branch_city' => 'New York',
|
'insurer_branch_city' => 'New York',
|
||||||
'relationship' => 'Self'
|
'relationship' => 'Self',
|
||||||
|
'basic_cover_si' => '5,00,000',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
$tpa_id = $this->TPAModel->where('id', $id)->first();
|
$tpa_id = $this->TPAModel->where('id', $id)->first();
|
||||||
|
|
||||||
$template_data_path = WRITEPATH . 'e_card_template/';
|
$template_data_path = WRITEPATH . 'e_card_template/';
|
||||||
@ -1354,6 +1354,7 @@ class EmployeeController extends AdminController
|
|||||||
'{POLICY_NO}' => $value['policy_no'],
|
'{POLICY_NO}' => $value['policy_no'],
|
||||||
'{INSURER_NAME}' => strtoupper($value['insurer_name']),
|
'{INSURER_NAME}' => strtoupper($value['insurer_name']),
|
||||||
'{EMP_ID}' => $value['emp_code'],
|
'{EMP_ID}' => $value['emp_code'],
|
||||||
|
'{SI_AMT}' => $value['basic_cover_si'],
|
||||||
'{CORPORATE_NAME}' => $value['client_name'],
|
'{CORPORATE_NAME}' => $value['client_name'],
|
||||||
'{AGE}' => $value['emp_age'],
|
'{AGE}' => $value['emp_age'],
|
||||||
'{TPA_NAME}' => $value['tpa_name'],
|
'{TPA_NAME}' => $value['tpa_name'],
|
||||||
|
|||||||
@ -851,6 +851,7 @@ class EmployeePolicyModel extends Model
|
|||||||
ep.tpa_id,
|
ep.tpa_id,
|
||||||
ep.uhid,
|
ep.uhid,
|
||||||
ep.policy_end_date,
|
ep.policy_end_date,
|
||||||
|
ep.basic_cover_si,
|
||||||
|
|
||||||
clients.client_name,
|
clients.client_name,
|
||||||
clients.short_name AS client_short_name,
|
clients.short_name AS client_short_name,
|
||||||
@ -858,8 +859,6 @@ class EmployeePolicyModel extends Model
|
|||||||
cp.policy_start_date,
|
cp.policy_start_date,
|
||||||
cp.policy_no,
|
cp.policy_no,
|
||||||
|
|
||||||
policies.name AS policy_name,
|
|
||||||
|
|
||||||
insurers.name AS insurer_name,
|
insurers.name AS insurer_name,
|
||||||
insurers.short_name AS insurer_short_name,
|
insurers.short_name AS insurer_short_name,
|
||||||
insurers.insurer_logo,
|
insurers.insurer_logo,
|
||||||
@ -878,7 +877,6 @@ class EmployeePolicyModel extends Model
|
|||||||
->join('employee_polices ep', 'ep.employee_id = e.id')
|
->join('employee_polices ep', 'ep.employee_id = e.id')
|
||||||
->join('client_policy cp', 'cp.id = ep.client_policy_id')
|
->join('client_policy cp', 'cp.id = ep.client_policy_id')
|
||||||
->join('clients', 'clients.id = cp.client_id')
|
->join('clients', 'clients.id = cp.client_id')
|
||||||
->join('policies', 'policies.id = cp.policy_id')
|
|
||||||
->join('insurers', 'insurers.id = cp.insurer_id')
|
->join('insurers', 'insurers.id = cp.insurer_id')
|
||||||
->join('insurer_branch', 'insurer_branch.id = cp.insurer_branch_id')
|
->join('insurer_branch', 'insurer_branch.id = cp.insurer_branch_id')
|
||||||
->join('tpa', 'tpa.id = cp.tpa_id')
|
->join('tpa', 'tpa.id = cp.tpa_id')
|
||||||
@ -918,6 +916,7 @@ class EmployeePolicyModel extends Model
|
|||||||
ep.tpa_id,
|
ep.tpa_id,
|
||||||
ep.uhid,
|
ep.uhid,
|
||||||
ep.policy_end_date,
|
ep.policy_end_date,
|
||||||
|
ep.basic_cover_si,
|
||||||
|
|
||||||
clients.client_name,
|
clients.client_name,
|
||||||
clients.short_name AS client_short_name,
|
clients.short_name AS client_short_name,
|
||||||
@ -925,8 +924,6 @@ class EmployeePolicyModel extends Model
|
|||||||
cp.policy_start_date,
|
cp.policy_start_date,
|
||||||
cp.policy_no,
|
cp.policy_no,
|
||||||
|
|
||||||
policies.name AS policy_name,
|
|
||||||
|
|
||||||
insurers.name AS insurer_name,
|
insurers.name AS insurer_name,
|
||||||
insurers.short_name AS insurer_short_name,
|
insurers.short_name AS insurer_short_name,
|
||||||
insurers.insurer_logo,
|
insurers.insurer_logo,
|
||||||
@ -945,7 +942,6 @@ class EmployeePolicyModel extends Model
|
|||||||
->join('employee_polices ep', 'ep.employee_id = e.id')
|
->join('employee_polices ep', 'ep.employee_id = e.id')
|
||||||
->join('client_policy cp', 'cp.id = ep.client_policy_id')
|
->join('client_policy cp', 'cp.id = ep.client_policy_id')
|
||||||
->join('clients', 'clients.id = cp.client_id')
|
->join('clients', 'clients.id = cp.client_id')
|
||||||
->join('policies', 'policies.id = cp.policy_id')
|
|
||||||
->join('insurers', 'insurers.id = cp.insurer_id')
|
->join('insurers', 'insurers.id = cp.insurer_id')
|
||||||
->join('insurer_branch', 'insurer_branch.id = cp.insurer_branch_id')
|
->join('insurer_branch', 'insurer_branch.id = cp.insurer_branch_id')
|
||||||
->join('tpa', 'tpa.id = cp.tpa_id')
|
->join('tpa', 'tpa.id = cp.tpa_id')
|
||||||
|
|||||||
@ -663,7 +663,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li> -->
|
</li> -->
|
||||||
|
|
||||||
<?php if((get_role_id() == 1 || get_role_id() == 5) && (in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()))) { ?>
|
<?php if((get_role_id() == 1 || get_role_id() == 5) && (in_array(BUSINESS_TEAM_ID, user_team()) || in_array(FINANCE_TEAM_ID, user_team()) || in_array(MANAGEMENT_TEAM_ID, user_team()))) { ?>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
<a href="#sidebarDashboards" data-toggle="collapse" class="waves-effect">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user