mirror of
https://gitlab.com/flectra-community/account-closing.git
synced 2024-11-22 21:52:04 +00:00
92 lines
5.4 KiB
XML
92 lines
5.4 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<flectra>
|
||
|
|
||
|
<template id="curr_unrealized_report">
|
||
|
<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>
|
||
|
<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>
|
||
|
<div class="act_as_cell"></div>
|
||
|
<div class="act_as_cell"></div>
|
||
|
<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>
|
||
|
</template>
|
||
|
|
||
|
</flectra>
|