05.02.26
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user