Ignore pricing rule for material request

This commit is contained in:
Nabin Hait 2014-06-16 15:34:52 +05:30
parent 539f352318
commit a6fc3f6337

View File

@ -255,7 +255,7 @@ def apply_pricing_rule(args):
args = frappe._dict(args)
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"):
args.item_group, args.brand = frappe.db.get_value("Item",