2
0
account-financial-tools/account_cash_deposit/report/report_cashdeposit.xml

108 lines
4.9 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2022 Akretion France (www.akretion.com)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<template id="report_cashdeposit">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="web.external_layout">
<div class="page">
<h1><span t-field="o.display_name" /></h1>
<h3>Bank:</h3>
<p>
<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>
<p>
<b
t-if="o.operation_type == 'deposit'"
>Bank Account Number to Credit:</b>
<b
t-if="o.operation_type == 'order'"
>Bank Account Number to Debit:</b>
<span
t-field="o.bank_journal_id.bank_account_id.acc_number"
/>
</p>
<p>
<strong>Currency:</strong>
<span t-field="o.currency_id.name" />
</p>
<p t-if="o.operation_type == 'order'">
<strong>Order Date:</strong>
<span t-field="o.order_date" />
</p>
<p t-if="o.operation_type == 'deposit'">
<strong>Date:</strong>
<span t-field="o.date" />
</p>
<table class="table table-condensed">
<thead>
<tr>
<th>Cash Unit</th>
2022-12-12 21:12:46 +01:00
<th class="text-end">Quantity</th>
<th class="text-end">Subtotal</th>
</tr>
</thead>
<tbody>
<t t-foreach="o.line_ids" t-as="line">
<tr>
<td>
<span
t-field="line.cash_unit_id.display_name"
/>
</td>
2022-12-12 21:12:46 +01:00
<td class="text-end">
<span t-field="line.qty" />
</td>
2022-12-12 21:12:46 +01:00
<td class="text-end">
<span t-field="line.subtotal" />
</td>
</tr>
</t>
2022-12-12 21:12:46 +01:00
<tr class="border-black o_total" t-if="o.coin_amount">
<td />
<td class="text-end">
<strong>Loose Coins:</strong>
</td>
<td class="text-end">
<span t-field="o.coin_amount" />
</td>
</tr>
<tr class="border-black o_total">
<td />
2022-12-12 21:12:46 +01:00
<td class="text-end">
<strong>Total:</strong>
</td>
2022-12-12 21:12:46 +01:00
<td class="text-end">
<span t-field="o.total_amount" />
</td>
</tr>
</tbody>
</table>
</div>
<p t-if="o.notes" name="notes">
<span t-field="o.notes" />
</p>
</t>
</t>
</t>
</template>
</odoo>