Merge pull request #1995 from anandpdoshi/anand-july-28

[minor] apply pricing rule / price list only if item_code
This commit is contained in:
Anand Doshi
2014-07-28 16:05:42 +05:30

View File

@@ -363,6 +363,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
_get_item_list: function(item) { _get_item_list: function(item) {
var item_list = []; var item_list = [];
var append_item = function(d) { var append_item = function(d) {
if (d.item_code) {
item_list.push({ item_list.push({
"doctype": d.doctype, "doctype": d.doctype,
"name": d.name, "name": d.name,
@@ -371,6 +372,7 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
"brand": d.brand, "brand": d.brand,
"qty": d.qty "qty": d.qty
}); });
}
}; };
if (item) { if (item) {