Skip to content

Commit

Permalink
fix: remove applied pricing rule on qty change (backport #39688) (#39736
Browse files Browse the repository at this point in the history
)

fix: remove pricing rule

(cherry picked from commit 7c6a5a0)

Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
  • Loading branch information
mergify[bot] and s-aga-r authored Feb 5, 2024
1 parent b10c0c9 commit 46ac4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def set_missing_item_details(self, for_validate=False):
if self.get("is_subcontracted"):
args["is_subcontracted"] = self.is_subcontracted

ret = get_item_details(args, self, for_validate=True, overwrite_warehouse=False)
ret = get_item_details(args, self, for_validate=for_validate, overwrite_warehouse=False)

for fieldname, value in ret.items():
if item.meta.get_field(fieldname) and value is not None:
Expand Down

0 comments on commit 46ac4f4

Please sign in to comment.