[minor] apply pricing rule / price list only if item_code
diff --git a/erpnext/public/js/transaction.js b/erpnext/public/js/transaction.js
index ae5864d..93dd432 100644
--- a/erpnext/public/js/transaction.js
+++ b/erpnext/public/js/transaction.js
@@ -363,14 +363,16 @@
 	_get_item_list: function(item) {
 		var item_list = [];
 		var append_item = function(d) {
-			item_list.push({
-				"doctype": d.doctype,
-				"name": d.name,
-				"item_code": d.item_code,
-				"item_group": d.item_group,
-				"brand": d.brand,
-				"qty": d.qty
-			});
+			if (d.item_code) {
+				item_list.push({
+					"doctype": d.doctype,
+					"name": d.name,
+					"item_code": d.item_code,
+					"item_group": d.item_group,
+					"brand": d.brand,
+					"qty": d.qty
+				});
+			}
 		};
 
 		if (item) {