mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
Update erpnext/selling/doctype/customer/customer.py
Co-Authored-By: hrwX <himanshuwarekar@yahoo.com>
This commit is contained in:
@@ -65,7 +65,7 @@ class Customer(TransactionBase):
|
|||||||
for percentage in self.sales_team:
|
for percentage in self.sales_team:
|
||||||
allocated_percentage += percentage.allocated_percentage
|
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"))
|
frappe.throw(_("Total contribution percentage should be equal to 100"))
|
||||||
|
|
||||||
def check_customer_group_change(self):
|
def check_customer_group_change(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user