mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 02:04:50 +00:00
fix: sales percentage equal to 100
This commit is contained in:
committed by
Nabin Hait
parent
5ca977a41c
commit
40b99e3347
@@ -63,8 +63,9 @@ class Customer(TransactionBase):
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user