fix: sales percentage equal to 100
diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py
index 7328d1d..647e8be 100644
--- a/erpnext/selling/doctype/customer/customer.py
+++ b/erpnext/selling/doctype/customer/customer.py
@@ -63,8 +63,9 @@
allocated_percentage = 0
for percentage in self.sales_team:
allocated_percentage += percentage.allocated_percentage
- if allocated_percentage > 100:
- frappe.throw(_("Total contribution percentage can't exceed 100"))
+
+ if not allocated_percentage == 100:
+ frappe.throw(_("Total contribution percentage should be equal to 100"))
def check_customer_group_change(self):
frappe.flags.customer_group_changed = False