mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 20:29:09 +00:00
minor fix
This commit is contained in:
@@ -87,7 +87,7 @@ class Account(Document):
|
|||||||
return
|
return
|
||||||
|
|
||||||
existing_is_group = frappe.db.get_value("Account", self.name, "is_group")
|
existing_is_group = frappe.db.get_value("Account", self.name, "is_group")
|
||||||
if self.is_group != existing_is_group:
|
if cint(self.is_group) != cint(existing_is_group):
|
||||||
if self.check_gle_exists():
|
if self.check_gle_exists():
|
||||||
throw(_("Account with existing transaction cannot be converted to ledger"))
|
throw(_("Account with existing transaction cannot be converted to ledger"))
|
||||||
elif self.is_group:
|
elif self.is_group:
|
||||||
|
|||||||
Reference in New Issue
Block a user