From a2937cffc7daa2a53f23e331b32b262745e9d6aa Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Sat, 9 Apr 2022 19:20:51 +0530 Subject: [PATCH] fix: Implicit ignore pricing rule check on returns (cherry picked from commit 1b25a7fe765d334fce990d43224f8a790ccf8119) --- erpnext/controllers/sales_and_purchase_return.py | 1 - 1 file changed, 1 deletion(-) diff --git a/erpnext/controllers/sales_and_purchase_return.py b/erpnext/controllers/sales_and_purchase_return.py index bdde3a1fd8c..bd4b59b3855 100644 --- a/erpnext/controllers/sales_and_purchase_return.py +++ b/erpnext/controllers/sales_and_purchase_return.py @@ -330,7 +330,6 @@ def make_return_doc(doctype, source_name, target_doc=None): doc = frappe.get_doc(target) doc.is_return = 1 doc.return_against = source.name - doc.ignore_pricing_rule = 1 doc.set_warehouse = "" if doctype == "Sales Invoice" or doctype == "POS Invoice": doc.is_pos = source.is_pos