fix: set First Name in Supplier Contact

This commit is contained in:
s-aga-r
2024-01-08 11:36:37 +05:30
parent 558861b634
commit 69c460c756

View File

@@ -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),
}
)