[fix] [minor] setup serial no editor if serial no field exists
This commit is contained in:
parent
490115e1c6
commit
f83cf5890e
@ -38,7 +38,8 @@ $.extend(erpnext, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setup_serial_no: function(grid_row) {
|
setup_serial_no: function(grid_row) {
|
||||||
if(grid_row.fields_dict.serial_no.get_status()!=="Write") return;
|
if(!grid_row.fields_dict.serial_no ||
|
||||||
|
grid_row.fields_dict.serial_no.get_status()!=="Write") return;
|
||||||
|
|
||||||
var $btn = $('<button class="btn btn-sm btn-default">Add Serial No</button>')
|
var $btn = $('<button class="btn btn-sm btn-default">Add Serial No</button>')
|
||||||
.appendTo($("<div>")
|
.appendTo($("<div>")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user