Sign fix for P&L account balances in account plan

This commit is contained in:
Rick Falkvinge
2014-02-18 12:03:45 +00:00
parent e5e0d5d756
commit 25d752572b
@@ -139,7 +139,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
if (account.AccountType == FinancialAccountType.Cost || account.AccountType == FinancialAccountType.Income)
{
_singleBalanceLookup[account.Identity] = account.GetDeltaCents(new DateTime(_year, 1, 1),
_singleBalanceLookup[account.Identity] = -account.GetDeltaCents(new DateTime(_year, 1, 1),
new DateTime(_year + 1, 1, 1));
_singleBudgetLookup[account.Identity] = account.GetBudgetCents(_year);
}