Ignore pricing rule for material request
This commit is contained in:
parent
539f352318
commit
a6fc3f6337
@ -255,7 +255,7 @@ def apply_pricing_rule(args):
|
|||||||
|
|
||||||
args = frappe._dict(args)
|
args = frappe._dict(args)
|
||||||
out = frappe._dict()
|
out = frappe._dict()
|
||||||
if not args.get("item_code"): return
|
if args.get("doctype") == "Material Request" or not args.get("item_code"): return out
|
||||||
|
|
||||||
if not args.get("item_group") or not args.get("brand"):
|
if not args.get("item_group") or not args.get("brand"):
|
||||||
args.item_group, args.brand = frappe.db.get_value("Item",
|
args.item_group, args.brand = frappe.db.get_value("Item",
|
||||||
|
Loading…
Reference in New Issue
Block a user