Skip to content

Commit

Permalink
[12.0][IMP] l10n_it_fatturapa_out and l10n_it_fatturapa_out_triple_di…
Browse files Browse the repository at this point in the history
…scount: modifica del type di Importo in ScontoMaggiorazioneType (OCA#1875)

* [IMP] l10n_it_fatturapa_out: change precision_rounding of ScontoMaggiorazioneType according to e-invoicing specs 1.6

* [IMP] l10n_it_fatturapa_out_triple_discount: change precision_rounding of ScontoMaggiorazioneType according to e-invoicing specs 1.6
  • Loading branch information
tafaRU authored and TheMule71 committed May 26, 2021
1 parent 5a6088c commit 990bafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_out/tests/data/IT03297040366_00005.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<PrezzoUnitario>10.00000</PrezzoUnitario>
<ScontoMaggiorazione>
<Tipo>SC</Tipo>
<Percentuale>10.00</Percentuale>
<Percentuale>10.00000000</Percentuale>
</ScontoMaggiorazione>
<PrezzoTotale>9.00</PrezzoTotale>
<AliquotaIVA>22.00</AliquotaIVA>
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_out/wizard/wizard_export_fatturapa.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ def setScontoMaggiorazione(self, line):
if line.discount:
res.append(ScontoMaggiorazioneType(
Tipo='SC',
Percentuale='%.2f' % float_round(line.discount, 2)
Percentuale='%.8f' % float_round(line.discount, 8)
))
return res

Expand Down

0 comments on commit 990bafc

Please sign in to comment.