diff --git a/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs b/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs index 0419148a..bdf90893 100644 --- a/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs +++ b/Site5/Pages/v5/Ledgers/AccountPlan.aspx.cs @@ -243,7 +243,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers } FinancialAccount newParent = null; // to cover the root account case (reparenting to root) - if (parentAccountId != 0) + if (parentAccountId > 0) // the group parent IDs are -1 ... -4 { newParent = FinancialAccount.FromIdentity (parentAccountId); if (newParent.OrganizationId != authData.CurrentOrganization.Identity)