Skip to content

Commit

Permalink
fix: Do no apply pricing rule on qty change for mapped docs
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Jun 3, 2024
1 parent 289d216 commit 2b12421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,8 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}

qty(doc, cdt, cdn) {
if (!this.frm.doc.__onload?.load_after_mapping) {
let item = frappe.get_doc(cdt, cdn);
let item = frappe.get_doc(cdt, cdn);
if (!this.is_a_mapped_document(item)) {
// item.pricing_rules = ''
frappe.run_serially([
() => this.remove_pricing_rule_for_item(item),
Expand Down

0 comments on commit 2b12421

Please sign in to comment.