Merge pull request #30664 from frappe/mergify/bp/develop/pr-30662

fix: Implicit ignore pricing rule check on returns (backport #30662)
This commit is contained in:
Deepesh Garg 2022-04-10 17:07:03 +05:30 committed by GitHub
commit 5ac3e7e16e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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