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 0c8276ec82)

Co-authored-by: Indrajith.vs <91895505+Gubbu77@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2023-05-15 13:16:47 +05:30
committed by GitHub
parent dd116a3071
commit 3a7c69fc71

View File

@@ -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),
)