fix in syntax when using erpnext.queries.item
This commit is contained in:
parent
6411b930d7
commit
e9418f3be1
@ -193,7 +193,7 @@ cur_frm.fields_dict['contact_person'].get_query = function(doc, cdt, cdn) {
|
||||
}
|
||||
|
||||
cur_frm.fields_dict['entries'].grid.get_field("item_code").get_query = function(doc, cdt, cdn) {
|
||||
return return erpnext.queries.item({
|
||||
return erpnext.queries.item({
|
||||
'ifnull(tabItem.is_purchase_item, "No")': 'Yes'
|
||||
})
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ var calculate_total = function(doc) {
|
||||
|
||||
|
||||
cur_frm.fields_dict['item'].get_query = function(doc) {
|
||||
return return erpnext.queries.item({
|
||||
return erpnext.queries.item({
|
||||
'ifnull(tabItem.is_manufactured_item, "No")': 'Yes'
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user