diff --git a/ns_app/api/customer.py b/ns_app/api/customer.py index 3f7c31c..1461865 100644 --- a/ns_app/api/customer.py +++ b/ns_app/api/customer.py @@ -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()