main #7

Merged
admin merged 620 commits from main into dev 2026-03-29 13:03:25 +00:00
Showing only changes of commit 9235c22e04 - 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 / 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)