Fixes in merge functions

This commit is contained in:
Nabin Hait
2013-12-20 12:26:48 +05:30
parent a888e29b0a
commit 4b5ced03ec
3 changed files with 9 additions and 0 deletions

View File

@@ -211,6 +211,9 @@ class DocType:
# Validate properties before merging
if merge:
if not webnotes.conn.exists("Account", new):
webnotes.throw(_("Account ") + new +_(" does not exists"))
val = list(webnotes.conn.get_value("Account", new_account,
["group_or_ledger", "debit_or_credit", "is_pl_account"]))