main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit d213328fd9 - Show all commits

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)