This commit is contained in:
2026-02-05 19:36:55 +01:00
parent c1ca8c707c
commit 9235c22e04

View File

@@ -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)