Committing - landing
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user