minor fix
This commit is contained in:
parent
c3d1d6a946
commit
deb6e06336
@ -72,6 +72,7 @@ class Account(Document):
|
|||||||
|
|
||||||
def validate_balance_must_be_settings(self):
|
def validate_balance_must_be_settings(self):
|
||||||
from erpnext.accounts.utils import get_balance_on
|
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)
|
account_balance = get_balance_on(self.name)
|
||||||
|
|
||||||
if account_balance > 0 and self.balance_must_be == "Credit":
|
if account_balance > 0 and self.balance_must_be == "Credit":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user