Skip to content

Commit

Permalink
[IMP] l10n_it_fatturapa_out_rc: use values in EUR from aml instead of…
Browse files Browse the repository at this point in the history
… converting them
  • Loading branch information
Borruso committed Dec 18, 2023
1 parent 15db473 commit 7c4dcd2
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions l10n_it_fatturapa_out_rc/views/invoice_it_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
</xpath>
<xpath expr="//DatiRiepilogo/ImponibileImporto" position="replace">
<ImponibileImporto
t-esc="format_monetary(fpa_to_eur(get_sign(record) * tax_data['ImponibileImporto'], record), euro)"
t-esc="format_monetary(get_sign(record) * tax_data['ImponibileImporto'], euro)"
/>
</xpath>
<xpath expr="//DatiRiepilogo/Imposta" position="replace">
<Imposta
t-esc="format_monetary(get_sign(record) * tax_data['Imposta'], currency)"
t-esc="format_monetary(get_sign(record) * tax_data['Imposta'], euro)"
/>
</xpath>
</template>
Expand All @@ -74,9 +74,22 @@
t-esc="format_price(line, get_sign(line.move_id))"
/>
</xpath>
<xpath expr="//PrezzoTotale" position="replace">
<xpath
expr="//PrezzoTotale[@t-if='line.credit &gt; 0']"
position="replace"
>
<PrezzoTotale
t-if="line.credit > 0"
t-esc="format_monetary(fpa_to_eur(get_sign(line.move_id) * line.price_subtotal, line=line, field='credit'), euro)"
/>
</xpath>
<xpath
expr="//PrezzoTotale[@t-if='not line.credit &gt; 0']"
position="replace"
>
<PrezzoTotale
t-esc="format_monetary(fpa_to_eur(get_sign(line.move_id) * line.price_subtotal, record), euro)"
t-if="not line.credit > 0"
t-esc="format_monetary(fpa_to_eur(get_sign(line.move_id) * line.price_subtotal, line=line, field='debit'), euro)"
/>
</xpath>
</template>
Expand Down

0 comments on commit 7c4dcd2

Please sign in to comment.