mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
committed by
Nabin Hait
parent
b06f155ceb
commit
5c5a853894
@@ -17,7 +17,7 @@ class CustomerGroup(NestedSet):
|
|||||||
|
|
||||||
def validate_name_with_customer(self):
|
def validate_name_with_customer(self):
|
||||||
if frappe.db.exists("Customer", self.name):
|
if frappe.db.exists("Customer", self.name):
|
||||||
frappe.msgprint(_("An Customer exists with same name"), raise_exception=1)
|
frappe.msgprint(_("A customer with the same name already exists"), raise_exception=1)
|
||||||
|
|
||||||
def get_parent_customer_groups(customer_group):
|
def get_parent_customer_groups(customer_group):
|
||||||
lft, rgt = frappe.db.get_value("Customer Group", customer_group, ['lft', 'rgt'])
|
lft, rgt = frappe.db.get_value("Customer Group", customer_group, ['lft', 'rgt'])
|
||||||
|
|||||||
Reference in New Issue
Block a user