From 22cea5d1fba1ddf898338237e552c85c20ed2bc7 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Thu, 27 Apr 2000 08:19:15 +0000 Subject: [PATCH] Relax account type restrictions. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2229 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/AccInfo.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/engine/AccInfo.c b/src/engine/AccInfo.c index 5c7c81f680..52d3ae7fb7 100644 --- a/src/engine/AccInfo.c +++ b/src/engine/AccInfo.c @@ -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);