Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
396d40c34e
@ -56,13 +56,13 @@ cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) {
|
|||||||
// Serial No based on item_code
|
// Serial No based on item_code
|
||||||
cur_frm.fields_dict['item_serial_no'].get_query = function(doc, cdt, cdn) {
|
cur_frm.fields_dict['item_serial_no'].get_query = function(doc, cdt, cdn) {
|
||||||
var filter = {};
|
var filter = {};
|
||||||
if (doc.item_code)
|
if (doc.item_code) {
|
||||||
filter:{
|
filter = {
|
||||||
'item_code': doc.item_code,
|
'item_code': doc.item_code,
|
||||||
'status': "In Store"
|
'status': "In Store"
|
||||||
}
|
}
|
||||||
else
|
} else
|
||||||
filter: { 'status': "In Store" }
|
filter = { 'status': "In Store" }
|
||||||
|
|
||||||
return { filters: filter }
|
return { filters: filter }
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user