Fixed bug while selecting project in sales_invoice, sales_order, delivery_note

This commit is contained in:
Neil Trini Lasrado 2016-03-16 16:00:27 +05:30
parent fc827b329e
commit f433a5a124
3 changed files with 3 additions and 3 deletions

View File

@ -383,7 +383,7 @@ cur_frm.fields_dict.write_off_cost_center.get_query = function(doc) {
//-------------------------- //--------------------------
cur_frm.fields_dict['project'].get_query = function(doc, cdt, cdn) { cur_frm.fields_dict['project'].get_query = function(doc, cdt, cdn) {
return{ return{
query: "erpnext.controllers.queries.get_project", query: "erpnext.controllers.queries.get_project_name",
filters: {'customer': doc.customer} filters: {'customer': doc.customer}
} }
} }

View File

@ -221,7 +221,7 @@ cur_frm.cscript.new_contact = function(){
cur_frm.fields_dict['project'].get_query = function(doc, cdt, cdn) { cur_frm.fields_dict['project'].get_query = function(doc, cdt, cdn) {
return { return {
query: "erpnext.controllers.queries.get_project", query: "erpnext.controllers.queries.get_project_name",
filters: { filters: {
'customer': doc.customer 'customer': doc.customer
} }

View File

@ -144,7 +144,7 @@ cur_frm.cscript.update_status = function(status) {
// ***************** Get project name ***************** // ***************** Get project name *****************
cur_frm.fields_dict['project'].get_query = function(doc, cdt, cdn) { cur_frm.fields_dict['project'].get_query = function(doc, cdt, cdn) {
return { return {
query: "erpnext.controllers.queries.get_project", query: "erpnext.controllers.queries.get_project_name",
filters: { filters: {
'customer': doc.customer 'customer': doc.customer
} }