Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/sales_invoice/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ def validate_tax_id_mandatory(self):
if frappe.get_cached_value("Customer", self.bill_to or self.customer, "customer_type") == "Individual":
return

if validation:
if validation and (not frappe.get_cached_value("Customer", self.bill_to or self.customer, "tax_id_non_mandatory")):
frappe.throw(_("Customer {0} or Identification Number is mandatory for Sales Tax Invoice").format(_("Tax ID")))

def check_credit_limit(self):
Expand Down
12 changes: 11 additions & 1 deletion erpnext/selling/doctype/customer/customer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"tax_id",
"tax_strn",
"tax_status",
"tax_id_non_mandatory",
"primary_contact_person_section",
"salutation",
"column_break_53",
Expand Down Expand Up @@ -726,13 +727,22 @@
"fieldtype": "Table",
"label": "Goodwill Accounts",
"options": "Party Account"
},
{
"default": "0",
"fieldname": "tax_id_non_mandatory",
"fieldtype": "Check",
"hidden": 1,
"label": "Tax ID Non Mandatory",
"no_copy": 1,
"print_hide": 1
}
],
"icon": "fa fa-user",
"idx": 363,
"image_field": "image",
"links": [],
"modified": "2026-04-28 00:29:58.042752",
"modified": "2026-05-08 14:53:41.715259",
"modified_by": "Administrator",
"module": "Selling",
"name": "Customer",
Expand Down