Deploying to trim some visuals in Chrome
This commit is contained in:
@@ -211,5 +211,31 @@ namespace Activizr.Logic.Financial
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
public FinancialAccounts ExpensableAccounts
|
||||
{
|
||||
// TODO: This needs to return a tree, not a flat list.
|
||||
|
||||
get
|
||||
{
|
||||
FinancialAccounts result = new FinancialAccounts();
|
||||
|
||||
int yearlyResultId = this.CostsYearlyResult.Identity;
|
||||
|
||||
FinancialAccounts costAccounts =
|
||||
FinancialAccounts.ForOrganization(Organization.FromIdentity(_organizationId),
|
||||
FinancialAccountType.Cost);
|
||||
|
||||
foreach (FinancialAccount account in costAccounts)
|
||||
{
|
||||
if (account.Identity != yearlyResultId)
|
||||
{
|
||||
result.Add(account);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="entryFields">
|
||||
<asp:TextBox runat="server" ID="TextAmount" CssClass="alignRight" /> <br/>
|
||||
<asp:TextBox runat="server" ID="TextPurpose" /> <br/>
|
||||
<asp:TextBox runat="server" ID="Budget" /> <br/>
|
||||
<asp:DropDownList runat="server" ID="DropBudgets"/> <br/>
|
||||
<br/><!-- placeholder for label-side H2 -->
|
||||
<asp:TextBox runat="server" ID="TextBank" /> <br/>
|
||||
<asp:TextBox runat="server" ID="TextClearing" /> <br/>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Activizr.Logic.Financial;
|
||||
|
||||
public partial class Pages_v5_Finance_RequestCashAdvance : PageV5Base
|
||||
{
|
||||
@@ -15,11 +17,25 @@ public partial class Pages_v5_Finance_RequestCashAdvance : PageV5Base
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// Prime bank details
|
||||
|
||||
this.TextBank.Text = this.CurrentUser.BankName;
|
||||
this.TextClearing.Text = this.CurrentUser.BankClearing;
|
||||
this.TextAccount.Text = this.CurrentUser.BankAccount;
|
||||
this.TextAmount.Text = 0.ToString("N2");
|
||||
this.TextAmount.Focus();
|
||||
|
||||
// Prime budget dropdown
|
||||
|
||||
this.DropBudgets.Items.Clear();
|
||||
this.DropBudgets.Items.Add(new ListItem(Resources.Global.Global_DropInits_SelectFinancialAccount, "0"));
|
||||
|
||||
FinancialAccounts accounts = this.CurrentOrganization.FinancialAccounts.ExpensableAccounts;
|
||||
|
||||
foreach (FinancialAccount account in accounts)
|
||||
{
|
||||
this.DropBudgets.Items.Add(new ListItem(account.Name, account.Identity.ToString(CultureInfo.InvariantCulture)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user