From d213328fd9603d83ab314ab410bdd9798e0be491 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Thu, 5 Feb 2026 19:40:38 +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 44914cd..c7a3b03 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 / Decimal(self.unit.factor) * Decimal(unit.factor) + return round(self.price / Decimal(self.unit.factor) * Decimal(unit.factor),4) 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)