mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 04:15:10 +00:00
Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
@@ -56,13 +56,13 @@ cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) {
|
||||
// Serial No based on item_code
|
||||
cur_frm.fields_dict['item_serial_no'].get_query = function(doc, cdt, cdn) {
|
||||
var filter = {};
|
||||
if (doc.item_code)
|
||||
filter:{
|
||||
if (doc.item_code) {
|
||||
filter = {
|
||||
'item_code': doc.item_code,
|
||||
'status': "In Store"
|
||||
}
|
||||
else
|
||||
filter: { 'status': "In Store" }
|
||||
} else
|
||||
filter = { 'status': "In Store" }
|
||||
|
||||
return { filters: filter }
|
||||
}
|
||||
Reference in New Issue
Block a user