[fix] Don't add newline at the end, onchange of serial_no and filter warehouse based on company and is_group (#9809)

This commit is contained in:
Nabin Hait
2017-07-12 14:10:43 +05:30
committed by Rushabh Mehta
parent f012a9db70
commit 79c2191aa3
2 changed files with 14 additions and 8 deletions

View File

@@ -50,6 +50,14 @@ erpnext.SerialNoBatchSelector = Class.extend({
batches.grid.refresh();
batches.grid.add_new_row(null, null, null);
}
},
get_query: function() {
return {
filters: {
is_group: 0,
company: me.frm.doc.company
}
};
}
},
{fieldtype:'Column Break'},