You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

126 lines
4.7 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="report_bankdeposit">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="web.internal_layout">
<br></br>
<br></br>
<br></br>
<h1>BORDEREAU DE REMISE EN BANQUE</h1>
<br></br>
<span>édité le : </span><span t-esc="context_timestamp(datetime.datetime.now()).strftime('%Y-%m-%d %H:%M')"/> par <span t-esc="request.env.user.name"/>
<br></br>
<br></br>
<table>
<tr>
<td>
<tr><td><b><span>Entité : </span></b></td><td><span t-esc="doc.company_id.name"/></td></tr>
<tr><td><b><span>Banque : </span></b></td><td><span t-esc="doc.manual_mode_payment_id.fixed_journal_id.bank_id.display_name"/></td></tr>
<tr><td><b><span>Compte : </span></b></td><td><span t-esc="doc.manual_mode_payment_id.fixed_journal_id.bank_account_id.acc_number"/></td></tr>
</td>
<td>
</td>
</tr>
</table>
<br></br>
<br></br>
<table class="table table-sm o_main_table">
<thead>
<tr>
<th class="text-left"><span>N° Bordereau</span></th>
<th class="text-left"><span>Nombre</span></th>
<th class="text-left"><span>Montant</span></th>
<th class="text-left"><span>Mode</span></th>
<th class="text-left"><span>Auteur</span></th>
</tr>
</thead>
<tbody class="bankdeposit_tbody">
<tr>
<td><span t-esc="doc.id"/></td>
<td><span t-esc="doc.donation_count"/></td>
<td><span t-esc="doc.total_amount" t-options='{"widget": "monetary", "display_currency": doc.currency_id}'/></td>
<td><span></span></td>
<td><span t-esc="request.env.user.name"/></td>
</tr>
</tbody>
</table>
<t t-foreach="doc.payment_batch_ids" t-as="p">
<table class="table table-sm o_main_table">
<thead>
<tr>
<th class="text-left"><span>Id contact</span></th>
<th class="text-left"><span>Identification</span></th>
<th class="text-left"><span>Montant</span></th>
</tr>
</thead>
<tbody class="bankdeposit_tbody">
<t t-foreach="p.donation_ids" t-as="d">
<t t-foreach="d.line_ids" t-as="l">
<tr>
<td><span t-esc="d.partner_id.donor_id"/></td>
<td><span t-esc="d.partner_id.name"/></td>
<td><span t-esc="l.amount" t-options='{"widget": "monetary", "display_currency": l.currency_id}'/></td>
</tr>
</t>
</t>
</tbody>
</table>
</t>
</t>
</t>
</t>
</template>
<!-- <template id="report_bank_deposit">
<t t-call="web.internal_layout">
<t t-foreach="docs" t-as="o">
<div class="header">
<div class="row">
Header
</div>
</div>
<div class="article">
<div class="page">
<div class="row justify-content-end">
Report Body
</div>
</div>
</div>
<div class="footer" style="font-size:12px;">
Footer
</div>
</t>
</t>
</template> -->
<!-- <template id="report_bank_deposit">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t
t-call="opendons.report_bankdeposit_document"
t-lang="doc.partner_id.lang"
/>
</t>
</t>
</template> -->
</odoo>