fix: not able to save customer
This commit is contained in:
@@ -61,7 +61,7 @@ class Customer(TransactionBase):
|
|||||||
self.loyalty_program_tier = customer.loyalty_program_tier
|
self.loyalty_program_tier = customer.loyalty_program_tier
|
||||||
|
|
||||||
if self.sales_team:
|
if self.sales_team:
|
||||||
if sum([member.allocated_percentage for member in self.sales_team]) != 100:
|
if sum([member.allocated_percentage or 0 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