Merge pull request 'Removed duplicate name check.' (#7) from main into production

Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
2026-05-04 18:08:36 +00:00

View File

@@ -19,9 +19,6 @@ def create_customer_full(**data):
if not data.get(field):
frappe.throw(_(f"Missing required field: {field}"))
# Prevent duplicates
if frappe.db.exists("Customer", {"customer_name": data["customer_name"]}):
frappe.throw(_("Customer already exists"))
try:
frappe.db.begin()