From c8be8ba42cdaee909df29b9be14557bd9db7452f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 5 Jun 2014 15:18:10 +0530 Subject: [PATCH] function renamed --- erpnext/accounts/doctype/account/account.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/account/account.py b/erpnext/accounts/doctype/account/account.py index 4cd4efe86d..b1edaf4df4 100644 --- a/erpnext/accounts/doctype/account/account.py +++ b/erpnext/accounts/doctype/account/account.py @@ -30,7 +30,7 @@ class Account(Document): self.validate_mandatory() self.validate_warehouse_account() self.validate_frozen_accounts_modifier() - self.validate_balance_must_be_settings() + self.validate_balance_must_be_debit_or_credit() def validate_master_name(self): if self.master_type in ('Customer', 'Supplier') or self.account_type == "Warehouse": @@ -70,7 +70,7 @@ class Account(Document): frozen_accounts_modifier not in frappe.user.get_roles(): throw(_("You are not authorized to set Frozen value")) - def validate_balance_must_be_settings(self): + def validate_balance_must_be_debit_or_credit(self): from erpnext.accounts.utils import get_balance_on if not self.get("__islocal") and self.balance_must_be: account_balance = get_balance_on(self.name)