69 lines
2.9 KiB
XML
69 lines
2.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<template id="report_contributionregister">
|
|
<t t-call="report.html_container">
|
|
<t t-foreach="docs" t-as="o">
|
|
<t t-call="report.external_layout">
|
|
<div class="page">
|
|
<h2>PaySlip Lines by Contribution Register</h2>
|
|
|
|
|
|
<div class="row mt32 mb32">
|
|
<div class="col-xs-3">
|
|
<strong>Register Name:</strong>
|
|
<p t-field="o.name"/>
|
|
</div>
|
|
<div class="col-xs-3">
|
|
<strong>Date From:</strong>
|
|
<p t-esc="data['form']['date_from']"/>
|
|
</div>
|
|
<div class="col-xs-3">
|
|
<strong>Date To:</strong>
|
|
<p t-esc="data['form']['date_to']"/>
|
|
</div>
|
|
</div>
|
|
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>PaySlip Name</th>
|
|
<th>Code</th>
|
|
<th>Name</th>
|
|
<th>Quantity/Rate</th>
|
|
<th>Amount</th>
|
|
<th>Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr t-foreach="get_payslip_lines(o)" t-as="r">
|
|
<td><span t-esc="r.get('payslip_name')"/></td>
|
|
<td><span t-esc="r['code']"/></td>
|
|
<td><span t-esc="r['name']"/></td>
|
|
<td><span t-esc="formatLang(r['quantity'])"/></td>
|
|
<td><span t-esc="formatLang(r['amount'])"/></td>
|
|
<td><span t-esc=" formatLang(r['total'], currency_obj=o.company_id and o.company_id.currency_id)"/></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-4 pull-right">
|
|
<table class="table table-condensed">
|
|
<tr class="border-black">
|
|
<td><strong>Total</strong></td>
|
|
<td class="text-right">
|
|
<span t-esc="formatLang(sum_total(), currency_obj = o.company_id and o.company_id.currency_id)"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</openerp>
|