From 9235c22e041dea4f094646060a089e63f52ad62c Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Thu, 5 Feb 2026 19:36:55 +0100 Subject: [PATCH] 05.02.26 --- modules/purchase_trade/fee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/purchase_trade/fee.py b/modules/purchase_trade/fee.py index 31c8cb0..44914cd 100755 --- a/modules/purchase_trade/fee.py +++ b/modules/purchase_trade/fee.py @@ -262,7 +262,7 @@ class Fee(ModelSQL,ModelView): elif self.mode == 'ppack': unit = self.get_unit() if unit and self.unit: - return self.price / self.unit.factor * unit.factor + return self.price / Decimal(self.unit.factor) * Decimal(unit.factor) elif self.mode == 'pprice' or self.mode == 'pcost': if self.line and self.price: return round(self.price * Decimal(self.line.unit_price) / 100,4)