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'