Fixed bug while selecting project in sales_invoice, sales_order, delivery_note
This commit is contained in:
parent
fc827b329e
commit
f433a5a124
@ -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}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user