mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 08:52:06 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,85 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="report_contributionregister">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="web.internal_layout">
|
||||
<div class="page">
|
||||
<h2>PaySlip Lines by Contribution Register</h2>
|
||||
<div class="row mt32 mb32">
|
||||
<div class="col-3">
|
||||
<strong>Register Name:</strong>
|
||||
<p t-field="o.name" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<strong>Date From:</strong>
|
||||
<p t-esc="data['form']['date_from']" />
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<strong>Date To:</strong>
|
||||
<p t-esc="data['form']['date_to']" />
|
||||
</div>
|
||||
</div>
|
||||
<table class="table table-sm">
|
||||
<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="lines_data.get(o.id, []).filtered(lambda line: line.quantity != 0)" t-as="line">
|
||||
<td>
|
||||
<span t-esc="line.slip_id.name" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="line.code" />
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="line.name" />
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span t-esc="'{:g}'.format(line.quantity) if round(line.quantity,0)!=line.quantity else '{:.0f}'.format(line.quantity) if line.rate==100.00 else ('{:g}%'.format(line.rate) if round(line.rate,0)!=line.rate else '{:.0f}%'.format(line.rate))" />
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span
|
||||
t-esc="line.amount"
|
||||
t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'
|
||||
/>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span
|
||||
t-esc="line.total"
|
||||
t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row justify-content-end">
|
||||
<div class="col-4">
|
||||
<table class="table table-sm">
|
||||
<tr class="border-black">
|
||||
<td>
|
||||
<strong>Total</strong>
|
||||
</td>
|
||||
<td class="text-end">
|
||||
<span
|
||||
t-esc="lines_total.get(o.id)"
|
||||
t-esc-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'
|
||||
/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue