diff --git a/erpnext/public/js/utils/contact_address_quick_entry.js b/erpnext/public/js/utils/contact_address_quick_entry.js index a1c9d2fb1fa..c90f1914688 100644 --- a/erpnext/public/js/utils/contact_address_quick_entry.js +++ b/erpnext/public/js/utils/contact_address_quick_entry.js @@ -44,13 +44,13 @@ frappe.ui.form.ContactAddressQuickEntryForm = class ContactAddressQuickEntryForm label: __("First Name"), fieldname: "map_to_first_name", fieldtype: "Data", - depends_on: "eval:doc.customer_type=='Company'", + depends_on: "eval:doc.customer_type=='Company' || doc.supplier_type=='Company'", }, { label: __("Last Name"), fieldname: "map_to_last_name", fieldtype: "Data", - depends_on: "eval:doc.customer_type=='Company'", + depends_on: "eval:doc.customer_type=='Company' || doc.supplier_type=='Company'", }, {