* Fixed commission math
This commit is contained in:
parent
433837c2fe
commit
e74af73dad
|
|
@ -464,7 +464,7 @@ class Checklist(models.Model):
|
||||||
elif self.category_id:
|
elif self.category_id:
|
||||||
# Add commission of bottom-most category
|
# Add commission of bottom-most category
|
||||||
category_commission = getattr(self.category, 'commission', 0)
|
category_commission = getattr(self.category, 'commission', 0)
|
||||||
commission = self.price_rub / 100 * category_commission
|
commission = category_commission * self.price_rub / 100
|
||||||
else:
|
else:
|
||||||
commission = GlobalSettings.load().commission_rub
|
commission = GlobalSettings.load().commission_rub
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user