Anyone please guide me how can I display a contact designation on Quotation Document?
I tried to use something like this {{ frappe.db.get_value("Contact", { "..........": doc.contact_display }, "designation") or "" }}
But the contact_display, the quotation field, shows as a full name whereas there is no full name field in DocType “Contact” except first_name and last_name.
cur_frm.add_fetch(‘customer’,‘vat_id’,‘vat_id’)
Is it possible to declare and use for the second parameter? As I described, the field ‘Contact_display’ that shows a full name in Quotation DocType doesn’t match to the field in Contact DocType that comprise ‘first_name’ and ‘last_name’.
I’d like to code like this below :
cur_frm.add_fetch(‘contact’,‘first_name+last_name’,doc.contact_display)
Something like this. Please help me to revise the above code.