Skip to content

Commit

Permalink
[FIX][l10n_it_fatturapa_out_triple_discount] change rounding to avoid…
Browse files Browse the repository at this point in the history
… discard
  • Loading branch information
@ authored and GSLabIt committed Apr 20, 2022
1 parent fda72d4 commit c929dda
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def setDettaglioLinea(
DettaglioLinea.ScontoMaggiorazione.append(
ScontoMaggiorazioneType(
Tipo='SC',
Percentuale='%.8f' % float_round(line.discount2, 8)
Percentuale='%.2f' % float_round(line.discount2, 8)
))
if line.discount3:
DettaglioLinea.ScontoMaggiorazione.append(
ScontoMaggiorazioneType(
Tipo='SC',
Percentuale='%.8f' % float_round(line.discount3, 8)
Percentuale='%.2f' % float_round(line.discount3, 8)
))
return res

0 comments on commit c929dda

Please sign in to comment.