mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 03:01:22 +00:00
[get_query]to server side
This commit is contained in:
@@ -15,7 +15,10 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
cur_frm.fields_dict['item'].get_query = function(doc, cdt, cdn) {
|
||||
return erpnext.queries.item({
|
||||
'ifnull(tabItem.is_stock_item, "No")': 'Yes'
|
||||
})
|
||||
return {
|
||||
query:"controllers.queries.item_query",
|
||||
filters:{
|
||||
'is_stock_item': 'Yes'
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user