Merge pull request #7214 from rohitwaghchaure/pricing_rule_issue_latest

[Fix] Pricing rule issue
This commit is contained in:
Nabin Hait 2016-12-14 14:31:34 +05:30 committed by GitHub
commit 450a94c6b4

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