This commit is contained in:
2026-02-05 19:40:38 +01:00
parent 9235c22e04
commit d213328fd9

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