account-closing/account_multicurrency_revaluation/report/unrealized_currency_gain_loss.xml

149 lines
8.0 KiB
XML
Raw Permalink Normal View History

2022-06-29 18:32:15 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<flectra>
<template id="curr_unrealized_report">
<t t-call="web.html_container">
<t t-call="web.external_layout">
<div class="page">
<div class="act_as_table data_table">
<div class="act_as_row labels">
<div class="act_as_cell">Report</div>
<div class="act_as_cell">Company</div>
<div class="act_as_cell">Company currency</div>
</div>
<div class="act_as_row">
<div class="act_as_cell">Currency Gain and Loss</div>
<div class="act_as_cell">
<span t-field="user.company_id.name" />
</div>
<div class="act_as_cell">
<span t-field="user.company_id.currency_id.name" />
</div>
</div>
</div>
<t t-foreach="docs" t-as="account">
<t t-set="sh_acc" t-value="shell_accounts[account.id]" />
<div class="act_as_table list_table" style="margin-top: 10px;">
<div class="act_as_caption account_title">
<span t-esc="account.code" /> - <span
t-esc="account.name"
/>
</div>
<div class="act_as_thead">
<div class="act_as_row labels">
<div class="act_as_cell first_column">Partner</div>
<div
class="act_as_cell first_column amount"
style="width: 100px;"
>Curr. Balance YTD</div>
<div
class="act_as_cell first_column amount"
style="width: 50px;"
/>
<div
class="act_as_cell first_column amount"
style="width: 80px;"
>Revaluation Rate</div>
<div
class="act_as_cell first_column amount"
style="width: 150px;"
>Revaluated Amount YTD</div>
<div
class="act_as_cell first_column amount"
style="width: 100px;"
>Balance YTD</div>
<div
class="act_as_cell first_column amount"
style="width: 100px;"
>Gain(+)/Loss(-) YTD</div>
</div>
<t t-foreach="sh_acc.ordered_lines" t-as="line">
<div class="act_as_row lines">
<div class="act_as_cell">
<span t-esc="line.get('name') or '--'" />
</div>
<div
class="act_as_cell amount"
style="width: 100px;"
>
<span
t-esc="line.get('gl_foreign_balance') or 0.0"
/>
</div>
<div class="act_as_cell" style="width: 50px;">
<span
t-esc="line.get('curr_name') or '--'"
/>
</div>
<div
class="act_as_cell amount"
style="width: 80px;"
>
<span
t-esc="line.get('gl_currency_rate') or 0.0"
/>
</div>
<div
class="act_as_cell amount"
style="width: 150px;"
>
<span
t-esc="line.get('gl_revaluated_balance') or 0.0"
/>
</div>
<div
class="act_as_cell amount"
style="width: 100px;"
>
<t t-if="line.get('gl_balance')">
<span t-esc="line.get('gl_balance')" />
</t>
<t t-if="not line.get('gl_balance')">0.0</t>
</div>
<div
class="act_as_cell amount"
style="width: 100px;"
>
<span
t-esc="line.get('gl_ytd_balance') or 0.0"
/>
</div>
</div>
</t>
<div class="act_as_row lines labels">
<div class="act_as_cell">
<b>TOTAL</b>
</div>
<div class="act_as_cell" />
<div class="act_as_cell" />
<div class="act_as_cell" />
<div class="act_as_cell amount">
<b>
<span
t-esc="sh_acc.gl_revaluated_balance_total or 0.0"
/>
</b>
</div>
<div class="act_as_cell amount">
<b>
<span
t-esc="sh_acc.gl_balance_total or 0.0"
/>
</b>
</div>
<div class="act_as_cell amount">
<b>
<span
t-esc="sh_acc.gl_ytd_balance_total or 0.0"
/>
</b>
</div>
</div>
</div>
</div>
</t>
</div>
</t>
</t>
</template>
</flectra>