Merge pull request #51343 from frappe/revert-51259-gh-51233

This commit is contained in:
Mihir Kandoi
2025-12-26 21:58:29 +05:30
committed by GitHub

View File

@@ -231,6 +231,22 @@ def make_custom_fields(update=True):
description=_("Set this if the customer is a Public Administration company."),
depends_on='eval:doc.customer_type=="Company"',
),
dict(
fieldname="first_name",
label="First Name",
fieldtype="Data",
insert_after="salutation",
print_hide=1,
depends_on='eval:doc.customer_type!="Company"',
),
dict(
fieldname="last_name",
label="Last Name",
fieldtype="Data",
insert_after="first_name",
print_hide=1,
depends_on='eval:doc.customer_type!="Company"',
),
],
"Mode of Payment": [
dict(