2014-04-22 12:09:15 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
<template id= "report_hrsalarybymonth" >
<t t-call= "report.html_container" >
<t t-call= "report.internal_layout" >
<div class= "page" >
<div class= "text-center" >
2014-04-25 04:16:41 +00:00
<h2 > Yearly Salary Details</h2>
<p >
2014-04-23 18:32:41 +00:00
From <u > <span t-esc= "formatLang(data['form']['start_date'], date=True)" /> </u> To <u > <span t-esc= "formatLang(data['form']['end_date'], date=True)" /> </u> of <u > <span t-esc= "data['form']['category_id'][1]" /> </u> Category
</p>
2014-04-22 12:09:15 +00:00
</div>
<table class= "table table-condensed" >
2014-04-22 13:53:08 +00:00
<thead >
<tr style= "border-top: 1px solid black" >
<th > Name</th>
<t t-foreach= "get_periods(data['form'])" t-as= "m" >
2014-04-23 06:57:55 +00:00
<t t-foreach= "m" t-as= "month" >
2014-04-23 18:32:41 +00:00
<th class= "text-right" >
<span t-esc= "month" />
</th>
2014-04-23 06:57:55 +00:00
</t>
2014-04-22 13:53:08 +00:00
</t>
<th class= "text-right" > Total</th>
2014-04-22 12:09:15 +00:00
</tr>
2014-04-22 13:53:08 +00:00
</thead>
<tbody >
<t t-foreach= "get_employee(data['form'])" t-as= "e" >
<tr >
2014-04-23 18:32:41 +00:00
<td > <span t-esc= "e[0]" /> </td>
2014-04-23 06:57:55 +00:00
<t t-foreach= "e[1:13]" t-as= "month_sal" >
2014-04-23 18:32:41 +00:00
<td class= "text-right" >
<span t-esc= "month_sal" />
</td>
2014-04-23 06:57:55 +00:00
</t>
2014-04-23 18:32:41 +00:00
<td class= "text-right" >
<span t-esc= "formatLang(e[13],currency_obj= company.currency_id)" />
</td>
2014-04-22 13:53:08 +00:00
</tr>
2014-04-22 12:09:15 +00:00
</t>
2014-04-22 13:53:08 +00:00
</tbody>
<tfoot >
<tr class= "border-black" >
<t t-foreach= "get_months_tol()" t-as= "t" >
2014-04-23 18:32:41 +00:00
<td > <strong > Total</strong> </td>
2014-04-22 13:53:08 +00:00
<t t-foreach= "t" t-as= "tdata" >
2014-04-23 06:57:55 +00:00
<td class= "text-right" > <strong > <span t-esc= "formatLang(tdata, currency_obj=company.currency_id)" /> </strong> </td>
2014-04-22 13:53:08 +00:00
</t>
2014-04-23 18:32:41 +00:00
<td class= "text-right" > <strong > <span t-esc= "formatLang(get_total(), currency_obj=company.currency_id)" /> </strong> </td>
2014-04-22 13:53:08 +00:00
</t>
</tr>
</tfoot>
2014-04-22 12:09:15 +00:00
</table>
</div>
</t>
</t>
</template>
</data>
2014-04-23 18:32:41 +00:00
</openerp>