Relax account type restrictions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2229 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldreleases/1.4
Dave Peticolas 26 years ago
parent b484cc3f09
commit 22cea5d1fb

@ -108,22 +108,21 @@ xaccAccountTypesCompatible (int parent_type, int child_type)
case STOCK:
case MUTUAL:
case CURRENCY:
compatible = ((child_type == BANK) ||
(child_type == CASH) ||
(child_type == ASSET) ||
(child_type == STOCK) ||
(child_type == MUTUAL) ||
(child_type == CURRENCY));
break;
case CREDIT:
case LIABILITY:
compatible = ((child_type == CREDIT) || (child_type == LIABILITY));
compatible = ((child_type == BANK) ||
(child_type == CASH) ||
(child_type == ASSET) ||
(child_type == STOCK) ||
(child_type == MUTUAL) ||
(child_type == CURRENCY) ||
(child_type == CREDIT) ||
(child_type == LIABILITY));
break;
case INCOME:
compatible = (child_type == INCOME);
break;
case EXPENSE:
compatible = (child_type == EXPENSE);
compatible = ((child_type == INCOME) ||
(child_type == EXPENSE));
break;
case EQUITY:
compatible = (child_type == EQUITY);

Loading…
Cancel
Save