127 lines
6.0 KiB
XML
127 lines
6.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<template id="report_hr_yearly_salary">
|
|
<t t-call="report.html_container">
|
|
<t t-foreach="get_employee(data['form'])" t-as="employee">
|
|
<t t-call="report.internal_layout">
|
|
<div class="page">
|
|
<h2><span t-field="employee.company_id"/></h2>
|
|
<p> From
|
|
<u><span t-esc="formatLang(data['form']['date_from'], date=True)"/></u>
|
|
To <u><span t-esc="formatLang(data['form']['date_to'], date=True)"/></u> </p>
|
|
<table class="table table-condensed table-bordered">
|
|
<tr>
|
|
<td><strong>Employee Code</strong></td>
|
|
<td>
|
|
<t t-if="employee.identification_id">
|
|
<span t-field="employee.identification_id"/>
|
|
</t>
|
|
</td>
|
|
<td><strong>Department</strong></td>
|
|
<td>
|
|
<t t-if="employee.department_id">
|
|
<span t-field="employee.department_id.name"/>
|
|
</t>
|
|
</td>
|
|
<td><strong>Bank</strong></td>
|
|
<td>
|
|
<t t-if="employee.bank_account_id">
|
|
<span t-field="employee.bank_account_id.bank.name"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Employee Name</strong></td>
|
|
<td>
|
|
<t t-if="employee.name">
|
|
<span t-field="employee.name"/>
|
|
</t>
|
|
</td>
|
|
<td><strong>Other No.</strong></td>
|
|
<td>
|
|
<t t-if="employee.otherid">
|
|
<span t-field="employee.otherid"/>
|
|
</t>
|
|
</td>
|
|
<td><strong>Address</strong></td>
|
|
<td>
|
|
<t t-if="employee.address_home_id">
|
|
<span t-field="employee.address_home_id.name"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Designation</strong></td>
|
|
<td>
|
|
<t t-if="employee.job_id">
|
|
<span t-field="employee.job_id.name"/>
|
|
</t>
|
|
</td>
|
|
<td><strong>Phone No.</strong></td>
|
|
<td>
|
|
<t t-if="employee.work_phone">
|
|
<span t-field="employee.work_phone"/>
|
|
</t>
|
|
</td>
|
|
<td><strong>E-mail Address</strong></td>
|
|
<td>
|
|
<t t-if="employee.work_email">
|
|
<span t-field="employee.work_email"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>Title</th>
|
|
<t t-foreach="get_periods(data['form'])[0]" t-as="months">
|
|
<span t-esc="get_employee_detail(data['form'], employee)"/>
|
|
<th>
|
|
<t t-if="months">
|
|
<span t-esc="months"/>
|
|
</t>
|
|
</th>
|
|
</t>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<t t-foreach="get_allow()" t-as="allowanc">
|
|
<tr>
|
|
<t t-if="allowanc[0] =='Basic' or allowanc[0] == 'Gross'">
|
|
<th><span t-esc="allowanc[0]"/></th>
|
|
</t>
|
|
<t t-if="allowanc[0] !='Basic' and allowanc[0] != 'Gross'">
|
|
<td><span t-esc="allowanc[0]"/></td>
|
|
</t>
|
|
|
|
<t t-foreach="allowanc[1:(len(allowanc)-1)]" t-as="allow">
|
|
<td><span t-esc="allow"/></td>
|
|
</t>
|
|
</tr>
|
|
</t>
|
|
<t t-foreach="get_deduct()" t-as="deduct">
|
|
<tr>
|
|
<t t-if="deduct[0] == 'Net'">
|
|
<th><span t-esc="deduct[0]"/></th>
|
|
</t>
|
|
<t t-if="deduct[0] != 'Net'">
|
|
<td><span t-esc="deduct[0]"/></td>
|
|
</t>
|
|
<t t-foreach="deduct[1:(len(deduct)-1)]" t-as="d">
|
|
<td><span t-esc="d"/></td>
|
|
</t>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</openerp>
|