Merge pull request #1995 from anandpdoshi/anand-july-28
[minor] apply pricing rule / price list only if item_code
This commit is contained in:
commit
e3c161f0ea
@ -363,14 +363,16 @@ 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) {
|
||||||
item_list.push({
|
if (d.item_code) {
|
||||||
"doctype": d.doctype,
|
item_list.push({
|
||||||
"name": d.name,
|
"doctype": d.doctype,
|
||||||
"item_code": d.item_code,
|
"name": d.name,
|
||||||
"item_group": d.item_group,
|
"item_code": d.item_code,
|
||||||
"brand": d.brand,
|
"item_group": d.item_group,
|
||||||
"qty": d.qty
|
"brand": d.brand,
|
||||||
});
|
"qty": d.qty
|
||||||
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (item) {
|
if (item) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user