From 3a7c69fc71548f2bc6d9e853e1228c6d6b490aba Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 13:16:47 +0530 Subject: [PATCH] fix: sales person allocated amount calculation error nonetype and float (#35293) fix: sales person allocated amount calculation error nonetype and float (#35293) fix: sales person allocated amount calculation error nontype and float (cherry picked from commit 0c8276ec82c1d4b8cfd1d852b6e2e9a8c3cd3f1a) Co-authored-by: Indrajith.vs <91895505+Gubbu77@users.noreply.github.com> --- erpnext/controllers/selling_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index 590e00fb11e..3d47ee797da 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -171,7 +171,7 @@ class SellingController(StockController): self.round_floats_in(sales_person) sales_person.allocated_amount = flt( - self.amount_eligible_for_commission * sales_person.allocated_percentage / 100.0, + flt(self.amount_eligible_for_commission) * sales_person.allocated_percentage / 100.0, self.precision("allocated_amount", sales_person), )