From 90dc22a57d51c54b4b2c1ccd7a0c33276cef3fc5 Mon Sep 17 00:00:00 2001 From: harrishragavan Date: Tue, 27 Jan 2026 09:28:24 +0530 Subject: [PATCH] fix(shipment): user contact validation to use full name (cherry picked from commit 3c6eb9a531c839733b2e43a118b76ac1e846587b) --- erpnext/stock/doctype/shipment/shipment.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/stock/doctype/shipment/shipment.js b/erpnext/stock/doctype/shipment/shipment.js index 7f1e1c8d729..f22139c89f5 100644 --- a/erpnext/stock/doctype/shipment/shipment.js +++ b/erpnext/stock/doctype/shipment/shipment.js @@ -261,9 +261,9 @@ frappe.ui.form.on("Shipment", { frappe.db.get_value( "User", { name: frappe.session.user }, - ["full_name", "last_name", "email", "phone", "mobile_no"], + ["full_name", "email", "phone", "mobile_no"], (r) => { - if (!(r.last_name && r.email && (r.phone || r.mobile_no))) { + if (!(r.full_name && r.email && (r.phone || r.mobile_no))) { if (delivery_type == "Delivery") { frm.set_value("delivery_company", ""); frm.set_value("delivery_contact", ""); @@ -272,9 +272,9 @@ frappe.ui.form.on("Shipment", { frm.set_value("pickup_contact", ""); } frappe.throw( - __("Last Name, Email or Phone/Mobile of the user are mandatory to continue.") + + __("Full Name, Email or Phone/Mobile of the user are mandatory to continue.") + "
" + - __("Please first set Last Name, Email and Phone for the user") + + __("Please first set Full Name, Email and Phone for the user") + ` ${frappe.session.user}` ); }