I am trying to fetch data by using get_query. same query work for link field in parent table but i am getting error for child table field dc_number. I used following query
cur_frm.fields_dict['dc_number'].get_query = function(doc) { return "SELECT se.name FROM `tabStock Entry` se WHERE se.name_of_customer='Rohit'"; }
it give error cur_frm.fields_dict.dc_number is undefined
Thanking you
With Regards
Rohit
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
in Sales Invoice, the Item table's field name is "entries". You can check the doctype record or customise form to search for the field name of the child table.
I am trying to fetch data by using get_query. same query work for link field in parent table but i am getting error for child table field dc_number. I used following query
cur_frm.fields_dict['dc_number'].get_query = function(doc) { return "SELECT se.name FROM `tabStock Entry` se WHERE se.name_of_customer='Rohit'"; }
it give error cur_frm.fields_dict.dc_number is undefined
Thanking you
With Regards
Rohit
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.