From d1d37ee4b3e2947ca109d6518ab169c06a477c37 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sun, 15 Feb 2026 15:33:32 +0100 Subject: [PATCH] 15.02.26 --- modules/account_invoice/payment_term.py | 4 +++- modules/purchase_trade/fee.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/account_invoice/payment_term.py b/modules/account_invoice/payment_term.py index 7a6face..a5ee538 100755 --- a/modules/account_invoice/payment_term.py +++ b/modules/account_invoice/payment_term.py @@ -13,8 +13,10 @@ from trytond.pool import Pool from trytond.pyson import Eval from trytond.transaction import Transaction from trytond.wizard import Button, StateView, Wizard - from .exceptions import PaymentTermComputeError, PaymentTermValidationError +import logging + +logger = logging.getLogger(__name__) class PaymentTerm(DeactivableMixin, ModelSQL, ModelView): diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index ae6551d..8c82553 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -324,7 +324,7 @@ class Fee(ModelSQL,ModelView): factor = InterestCalculator.calculate( start_date=beg_date, end_date=est_date, - rate=self.price, + rate=self.price/100, rate_type='annual', convention='ACT/360', compounding='simple' @@ -340,7 +340,7 @@ class Fee(ModelSQL,ModelView): factor = InterestCalculator.calculate( start_date=beg_date, end_date=est_date, - rate=self.price, + rate=self.price/100, rate_type='annual', convention='ACT/360', compounding='simple'