Skip to content

Commit

Permalink
[IMP] supporto per la conversione degli importi in EUR per fatture in…
Browse files Browse the repository at this point in the history
… valuta estera
  • Loading branch information
TheMule71 committed Jan 14, 2022
1 parent 2f8b2a2 commit 9ac46a1
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions l10n_it_fatturapa_out_sp/view/invoice_it_template.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
<template
id="account_invoice_it_split_payment"
inherit_id="l10n_it_fatturapa_out.account_invoice_it_fattura_elettronica_body"
>
<xpath expr="//ImportoTotaleDocumento" position="replace" />
<xpath expr="//ImportoTotaleDocumento" position="replace">
<ImportoTotaleDocumento
t-if="record.split_payment"
t-esc="format_numbers_two(record.amount_total + record.amount_sp)"
/>
<ImportoTotaleDocumento
t-if="not record.split_payment"
t-esc="format_numbers_two(record.amount_total)"
/>
<t t-if="record.split_payment">
<ImportoTotaleDocumento
t-if="record.company_id.xml_divisa_value == 'keep_orig'"
t-esc="format_numbers_two(record.amount_total + record.amount_sp)"
/>
<ImportoTotaleDocumento
t-if="not record.company_id.xml_divisa_value == 'keep_orig'"
t-esc="format_numbers_two(fpa_to_eur(record.amount_total + record.amount_sp, record))"
/>
</t>
<t t-else="">
<ImportoTotaleDocumento
t-if="record.company_id.xml_divisa_value == 'keep_orig'"
t-esc="format_numbers_two(record.amount_total)"
/>
<ImportoTotaleDocumento
t-if="not record.company_id.xml_divisa_value == 'keep_orig'"
t-esc="format_numbers_two(fpa_to_eur(record.amount_total, record))"
/>
</t>
</xpath>
</template>
</template>
</odoo>

0 comments on commit 9ac46a1

Please sign in to comment.