From e74af73dad458bfc32c23acce3baa455e0275595 Mon Sep 17 00:00:00 2001 From: phzhik Date: Thu, 12 Oct 2023 02:14:14 +0400 Subject: [PATCH] * Fixed commission math --- store/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/models.py b/store/models.py index 90f4d0c..be72075 100644 --- a/store/models.py +++ b/store/models.py @@ -464,7 +464,7 @@ class Checklist(models.Model): elif self.category_id: # Add commission of bottom-most category category_commission = getattr(self.category, 'commission', 0) - commission = self.price_rub / 100 * category_commission + commission = category_commission * self.price_rub / 100 else: commission = GlobalSettings.load().commission_rub