From 69c460c7562103771d5238c1f02af04493651dd8 Mon Sep 17 00:00:00 2001 From: s-aga-r Date: Mon, 8 Jan 2024 11:36:37 +0530 Subject: [PATCH] fix: set `First Name` in Supplier Contact --- erpnext/selling/doctype/customer/customer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index fea27da61b2..b7fcadb1eca 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -706,7 +706,9 @@ def make_contact(args, is_primary_contact=1): else: values.update( { - "first_name": args.get("customer_name"), + "first_name": args.get("customer_name") + if args.doctype == "Customer" + else args.get("supplier_name"), "company_name": args.get(party_name_key), } )