Minor fixes in fetching item details
This commit is contained in:
parent
bc7efa6da6
commit
ce6977ffe6
@ -255,6 +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 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…
x
Reference in New Issue
Block a user