Fixes in pricing rule
diff --git a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
index 2d592d1..0474639 100644
--- a/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
+++ b/erpnext/accounts/doctype/pricing_rule/pricing_rule.py
@@ -107,9 +107,9 @@
args.transaction_type = "buying" if frappe.get_meta(args.parenttype).get_field("supplier") \
else "selling"
- args_copy = copy.deepcopy(args)
- args_copy.pop("item_list")
for item in args.get("item_list"):
+ args_copy = copy.deepcopy(args)
+ args_copy.pop("item_list")
args_copy.update(item)
out.append(get_pricing_rule_for_item(args_copy))