From 13eb972aa67d26be1bd4615075c1132ed33ab0d1 Mon Sep 17 00:00:00 2001 From: ljain112 Date: Thu, 13 Nov 2025 14:24:35 +0530 Subject: [PATCH] fix: first and last name in supplier quick entry --- erpnext/public/js/utils/contact_address_quick_entry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/public/js/utils/contact_address_quick_entry.js b/erpnext/public/js/utils/contact_address_quick_entry.js index 8c3baa2b3c..b42818b4e7 100644 --- a/erpnext/public/js/utils/contact_address_quick_entry.js +++ b/erpnext/public/js/utils/contact_address_quick_entry.js @@ -106,13 +106,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'", }, { -- GitLab