fix: Implicit ignore pricing rule check on returns

(cherry picked from commit 1b25a7fe765d334fce990d43224f8a790ccf8119)
This commit is contained in:
Deepesh Garg 2022-04-09 19:20:51 +05:30 committed by mergify-bot
parent 207bf85c74
commit a2937cffc7

View File

@ -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