enable show_configure_button when shopping cart is enabled
This commit is contained in:
parent
ecbfda7d6a
commit
27d27c924d
@ -13,6 +13,12 @@ $.extend(cur_frm.cscript, {
|
|||||||
},
|
},
|
||||||
enable_checkout: function(){
|
enable_checkout: function(){
|
||||||
toggle_mandatory(cur_frm)
|
toggle_mandatory(cur_frm)
|
||||||
|
},
|
||||||
|
enabled: function() {
|
||||||
|
if(cur_frm.doc.enabled == 1) {
|
||||||
|
cur_frm.doc.show_configure_button = 1;
|
||||||
|
cur_frm.refresh_field('show_configure_button');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user