Committing - landing

This commit is contained in:
Rick Falkvinge
2013-09-23 17:34:45 +00:00
parent 5ff5a64787
commit 6b7e1678b5
3 changed files with 6 additions and 6 deletions
@@ -218,7 +218,7 @@ namespace Swarmops.Logic.Financial
}
}
public FinancialAccounts ExpensableAccounts
public FinancialAccounts ExpensableBudgets
{
// TODO: This needs to return a tree, not a flat list.
@@ -234,7 +234,7 @@ namespace Swarmops.Logic.Financial
foreach (FinancialAccount account in costAccounts)
{
if (account.Identity != yearlyResultId)
if (account.Identity != yearlyResultId && account.Dimension == 1 && account.Expensable)
{
result.Add(account);
}
@@ -20,7 +20,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
// Is this stuff in cache already?
string cacheKey = "ExpensableAccounts-Json-" +
string cacheKey = "ExpensableBudgets-Json-" +
this.CurrentOrganization.Identity.ToString((CultureInfo.InvariantCulture));
string accountsJson =
@@ -37,7 +37,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
// Get accounts
FinancialAccounts accounts = this.CurrentOrganization.FinancialAccounts.ExpensableAccounts;
FinancialAccounts accounts = this.CurrentOrganization.FinancialAccounts.ExpensableBudgets;
// Build tree (there should be a template for this)
@@ -35,7 +35,7 @@ namespace Swarmops.Frontend.Pages.v5.Finance
// Is this stuff in cache already?
string cacheKey = "ExpensableAccounts-Json-" +
string cacheKey = "ExpensableBudgets-Json-" +
currentOrganizationId.ToString((CultureInfo.InvariantCulture));
string accountsJson =
@@ -52,7 +52,7 @@ namespace Swarmops.Frontend.Pages.v5.Finance
// Get accounts
FinancialAccounts accounts = currentOrganization.FinancialAccounts.ExpensableAccounts;
FinancialAccounts accounts = currentOrganization.FinancialAccounts.ExpensableBudgets;
// Build tree (there should be a template for this)