Files
account-financial-tools/account_check_deposit/report/report_checkdeposit.xml
2023-01-05 20:43:17 +01:00

106 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014-2019 Akretion (www.akretion.com)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
The licence is in the file __manifest__.py
-->
<odoo>
<template id="report_checkdeposit">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<div class="page">
<h2>Deposit n°<span t-field="o.name"/></h2>
<div id="informations" class="row mt32 mb32">
<div class="col-auto mw-100 mb-2" t-if="o.bank_journal_id.bank_account_id" name="bank_journal_id">
<strong>Bank:</strong>
<p class="m-0">
<span t-field="o.bank_journal_id.bank_account_id.bank_id.name"/><br/>
<span t-field="o.bank_journal_id.bank_account_id.bank_id.street"/><br/>
<span t-field="o.bank_journal_id.bank_account_id.bank_id.zip"/> <span t-field="o.bank_journal_id.bank_account_id.bank_id.city"/>
</p>
</div>
<div class="col-auto mw-100 mb-2" t-if="o.bank_journal_id.bank_account_id" name="acc_number">
<strong>Account Number:</strong>
<p class="m-0" t-field="o.bank_journal_id.bank_account_id.acc_number"/>
</div>
<div class="col-auto mw-100 mb-2" name="currency_id">
<strong>Currency:</strong>
<p class="m-0" t-field="o.currency_id.name"/>
</div>
<div class="col-auto mw-100 mb-2" name="deposit_date">
<strong>Transfer Date:</strong>
<p class="m-0" t-field="o.deposit_date"/>
</div>
<div class="col-auto mw-100 mb-2" name="check_count">
<strong>Lines:</strong>
<p class="m-0" t-field="o.check_count"/>
</div>
</div>
<h3>Details:</h3>
<table class="table table-condensed">
<thead>
<tr>
<th>Date</th>
<th>Reference</th>
<th>Debtor</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<t t-foreach="o.check_payment_ids" t-as="move_line">
<tr>
<td><span t-field="move_line.date"/></td>
<td><span t-field="move_line.ref"/></td>
<td><span t-field="move_line.partner_id.name"/></td>
<td>
<t t-if="o.currency_id == o.company_id.currency_id">
<t t-if="move_line.debit > 0">
<span t-field="move_line.debit"
t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</t>
<t t-if="move_line.credit > 0">
(<span t-field="move_line.credit"
t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>)
</t>
</t>
<t t-if="o.currency_id != o.company_id.currency_id">
<span t-field="move_line.amount_currency"
t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</t>
</td>
</tr>
</t>
<tr>
<td></td>
<td></td>
<td><b>Total:</b></td>
<td><b><span t-field="o.total_amount" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/></b></td>
</tr>
</tbody>
</table>
</div>
</t>
</t>
</t>
</template>
</odoo>