diff --git a/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py b/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py index 4a80bf6..2abe986 100644 --- a/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py +++ b/account_factoring_receivable_balance_eurofactor/models/subrogation_receipt.py @@ -109,7 +109,8 @@ def size(size, data, info=None): errors.append(res) sequence += 1 p_type = get_type_piece(move) - total = abs(move.amount_total_in_currency_signed) + # le montant est mis en cts + total = int(round(abs(move.amount_total_in_currency_signed)*100)) activity = "E" if partner.country_id == self.env.ref("base.fr"): activity = "D" @@ -127,7 +128,7 @@ def size(size, data, info=None): "ref_int": pad(partner.ref, 15, position="left"), "blanc1": pad(" ", 23), "ref_move": pad(cut(move.name, 14), 14, position="left"), - "total": pad(str(round(total, 2)).replace(".", ""), 15, 0), + "total": pad(total, 15, 0), "date": eurof_date(move.invoice_date if p_type == "F" else move.date), "date_due": eurof_date(move.invoice_date_due), "paym": "A" if p_type == "F" else "T", # TODO check si traite