Merge pull request #40770 from deepeshgarg007/so_commission_update
fix: Recalculate sales commission on item update
This commit is contained in:
@@ -139,7 +139,7 @@ class SellingController(StockController):
|
||||
self.in_words = money_in_words(amount, self.currency)
|
||||
|
||||
def calculate_commission(self):
|
||||
if not self.meta.get_field("commission_rate") or self.docstatus.is_submitted():
|
||||
if not self.meta.get_field("commission_rate"):
|
||||
return
|
||||
|
||||
self.round_floats_in(self, ("amount_eligible_for_commission", "commission_rate"))
|
||||
|
||||
Reference in New Issue
Block a user