fix: Reapply pricing rule on qty change

(cherry picked from commit b741ae143c)
This commit is contained in:
Deepesh Garg
2022-12-02 17:14:06 +05:30
committed by Mergify
parent f5205a5b5d
commit c726c16702
5 changed files with 13 additions and 10 deletions

View File

@@ -197,7 +197,7 @@ class AccountsController(TransactionBase):
validate_einvoice_fields(self)
if self.doctype != "Material Request":
if self.doctype != "Material Request" and not self.ignore_pricing_rule:
apply_pricing_rule_on_transaction(self)
def before_cancel(self):