[Fix] Pricing rule issue
This commit is contained in:
parent
4b5ab6a0d0
commit
39712b5e1d
@ -126,7 +126,7 @@ def get_pricing_rule_for_item(args):
|
|||||||
})
|
})
|
||||||
|
|
||||||
if args.ignore_pricing_rule or not args.item_code:
|
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)
|
item_details = remove_pricing_rule(args, item_details)
|
||||||
return item_details
|
return item_details
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user