[Fix] Pricing rule issue

This commit is contained in:
Rohit Waghchaure 2016-12-14 14:12:20 +05:30
parent 4b5ab6a0d0
commit 39712b5e1d

View File

@ -126,7 +126,7 @@ def get_pricing_rule_for_item(args):
})
if args.ignore_pricing_rule or not args.item_code:
if args.name and args.get("pricing_rule"):
if frappe.db.exists(args.doctype, args.name) and args.get("pricing_rule"):
item_details = remove_pricing_rule(args, item_details)
return item_details