fix: get contact details (#19281)
This commit is contained in:
parent
0fde204074
commit
eba3a8e802
@ -100,6 +100,10 @@ frappe.ui.form.on("Opportunity", {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (frm.doc.opportunity_from && frm.doc.party_name && !frm.doc.contact_person) {
|
||||
frm.trigger("party_name");
|
||||
}
|
||||
},
|
||||
|
||||
set_contact_link: function(frm) {
|
||||
|
@ -23,6 +23,9 @@ frappe.ui.form.on('Quotation', {
|
||||
refresh: function(frm) {
|
||||
frm.trigger("set_label");
|
||||
frm.trigger("set_dynamic_field_label");
|
||||
if (frm.doc.quotation_to && frm.doc.party_name && !frm.doc.contact_person) {
|
||||
frm.trigger("party_name");
|
||||
}
|
||||
},
|
||||
|
||||
quotation_to: function(frm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user