Skip to content

Commit

Permalink
FIX account_facto_receivable_bal_eurof: no more round total
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Sep 10, 2024
1 parent 8366854 commit b245e67
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def size(size, data, info=None):
)
sequence += 1
p_type = get_type_piece(move)
total = move.amount_total_in_currency_signed
total = abs(move.amount_total_in_currency_signed)
activity = "E"
if partner.country_id == self.env.ref("base.fr"):
activity = "D"
Expand All @@ -125,7 +125,7 @@ def size(size, data, info=None):
"ref_int": pad(partner.ref, 15, position="left"),
"blanc1": pad(" ", 23),
"ref_move": pad(move.name, 14),
"total": pad(round(abs(total)), 15, 0),
"total": pad(round(total), 15, 2),
"date": eurof_date(move.invoice_date if p_type == "F" else move.date),
"date_due": eurof_date(move.invoice_date_due) or pad(" ", 8),
"paym": "A" if p_type == "F" else "T", # TODO check si traite
Expand Down

0 comments on commit b245e67

Please sign in to comment.