Merge pull request #8226 from mbauskar/item-varient-fix

[minor] make varient fixes in item.js
This commit is contained in:
Nabin Hait 2017-03-30 16:05:34 +05:30 committed by GitHub
commit 3c2be33adf

View File

@ -259,8 +259,6 @@ $.extend(erpnext.item, {
},
make_variant: function(frm) {
var fields = []
if(frm.doc.variant_based_on==="Item Attribute") {
erpnext.item.show_modal_for_item_attribute_selection(frm);
} else {
@ -299,6 +297,8 @@ $.extend(erpnext.item, {
},
show_modal_for_item_attribute_selection: function(frm) {
var fields = []
for(var i=0;i< frm.doc.attributes.length;i++){
var fieldtype, desc;
var row = frm.doc.attributes[i];