[minor] perpetual inventory fix

This commit is contained in:
Nabin Hait
2013-09-24 15:16:01 +05:30
parent 11f41955c9
commit 04a3feecf6
3 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ class DocType:
def validate_frozen_accounts_modifier(self):
old_value = webnotes.conn.get_value("Account", self.doc.name, "freeze_account")
if old_value != self.doc.freeze_account:
if old_value and old_value != self.doc.freeze_account:
frozen_accounts_modifier = webnotes.conn.get_value( 'Accounts Settings', None,
'frozen_accounts_modifier')
if not frozen_accounts_modifier or \

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-06-24 15:49:57",
"docstatus": 0,
"modified": "2013-09-24 11:52:57",
"modified": "2013-09-24 11:52:58",
"modified_by": "Administrator",
"owner": "Administrator"
},