From 90d0d24d1ad05f622c388bf52a0a88e0a82a2816 Mon Sep 17 00:00:00 2001 From: Rohan Date: Fri, 3 May 2019 17:53:09 +0530 Subject: [PATCH] Update erpnext/selling/doctype/customer/customer.py Co-Authored-By: hrwX --- erpnext/selling/doctype/customer/customer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/customer/customer.py b/erpnext/selling/doctype/customer/customer.py index e7c7b3adf48..44859a1410d 100644 --- a/erpnext/selling/doctype/customer/customer.py +++ b/erpnext/selling/doctype/customer/customer.py @@ -65,7 +65,7 @@ class Customer(TransactionBase): for percentage in self.sales_team: allocated_percentage += percentage.allocated_percentage - if not allocated_percentage == 100: + if sum([member.allocated_percentage for member in self.sales_team]) != 100: frappe.throw(_("Total contribution percentage should be equal to 100")) def check_customer_group_change(self):