fixes in get_serial_number function
This commit is contained in:
parent
3353ad42bc
commit
3d61bbb36a
@ -59,7 +59,6 @@ $.extend(erpnext, {
|
|||||||
|
|
||||||
setup_serial_no: function() {
|
setup_serial_no: function() {
|
||||||
var grid_row = cur_frm.open_grid_row();
|
var grid_row = cur_frm.open_grid_row();
|
||||||
|
|
||||||
if(!grid_row.fields_dict.serial_no ||
|
if(!grid_row.fields_dict.serial_no ||
|
||||||
grid_row.fields_dict.serial_no.get_status()!=="Write") return;
|
grid_row.fields_dict.serial_no.get_status()!=="Write") return;
|
||||||
|
|
||||||
@ -76,10 +75,14 @@ $.extend(erpnext, {
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Serial No",
|
"options": "Serial No",
|
||||||
"label": __("Serial No"),
|
"label": __("Serial No"),
|
||||||
"get_query": {
|
"get_query": function () {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
item_code:grid_row.doc.item_code ,
|
item_code:grid_row.doc.item_code ,
|
||||||
warehouse:grid_row.doc.warehouse
|
warehouse:grid_row.doc.warehouse
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user