Started work on View Outstanding Accounts
This commit is contained in:
@@ -288,4 +288,28 @@
|
||||
<value>Action items will go here.</value>
|
||||
<comment>Placeholder for future action items. Temporary.</comment>
|
||||
</data>
|
||||
<data name="Financial_CashAdvances" xml:space="preserve">
|
||||
<value>Advances</value>
|
||||
</data>
|
||||
<data name="Financial_CashAdvancesLong" xml:space="preserve">
|
||||
<value>Cash Advances</value>
|
||||
</data>
|
||||
<data name="Financial_ExpenseClaims" xml:space="preserve">
|
||||
<value>Expenses</value>
|
||||
</data>
|
||||
<data name="Financial_ExpenseClaimsLong" xml:space="preserve">
|
||||
<value>Expense Claims</value>
|
||||
</data>
|
||||
<data name="Financial_InbondInvoices" xml:space="preserve">
|
||||
<value>Invoices</value>
|
||||
</data>
|
||||
<data name="Financial_InboundInvoicesLong" xml:space="preserve">
|
||||
<value>Inbound Invoices</value>
|
||||
</data>
|
||||
<data name="Financial_OutboundInvoices" xml:space="preserve">
|
||||
<value>Invoices</value>
|
||||
</data>
|
||||
<data name="Financial_OutboundInvoicesLong" xml:space="preserve">
|
||||
<value>Outbound Invoices</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -270,6 +270,9 @@
|
||||
<data name="Menu5_Ledgers_UploadBankFiles" xml:space="preserve">
|
||||
<value>Upload Bank Files</value>
|
||||
</data>
|
||||
<data name="Menu5_Ledgers_ViewOutstandingAccounts" xml:space="preserve">
|
||||
<value>View Outstanding Accounts</value>
|
||||
</data>
|
||||
<data name="Menu5_Organization" xml:space="preserve">
|
||||
<value>Organization</value>
|
||||
</data>
|
||||
|
||||
@@ -331,4 +331,10 @@
|
||||
<value>Upload Bank File</value>
|
||||
<comment>Displayed as header above download instructions / upload form</comment>
|
||||
</data>
|
||||
<data name="ViewOutstandingAccounts_Info" xml:space="preserve">
|
||||
<value>This page lets you verify the outstanding accounts (expenses, invoices, cash advances, etc.) at the current point in time or at the time of closing of any previous ledger.</value>
|
||||
</data>
|
||||
<data name="ViewOutstandingAccounts_PageTitle" xml:space="preserve">
|
||||
<value>View Outstanding Accounts</value>
|
||||
</data>
|
||||
</root>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 698 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 857 B |
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 598 B |
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
@@ -188,6 +188,7 @@
|
||||
<telerik:RadMenuItem runat="server" IsSeparator="true" UserLevel="3" />
|
||||
<telerik:RadMenuItem runat="server" Text="XYZ Upload Bank Files" NavigateUrl="~/Pages/v5/Ledgers/UploadBankFiles.aspx" ImageUrl="~/Images/PageIcons/iconshock-bank-16px.png" Permission="Economy:Write" UserLevel="3" GlobalResourceKey="Menu5_Ledgers_UploadBankFiles" />
|
||||
<telerik:RadMenuItem runat="server" IsSeparator="true" UserLevel="3" />
|
||||
<telerik:RadMenuItem runat="server" Text="XYZ View Outstanding Accounts" NavigateUrl="~/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx" ImageUrl="~/Images/PageIcons/iconshock-cabinet-16px.png" Permission="EconomyDetail:Read" UserLevel="3" GlobalResourceKey="Menu5_Ledgers_ViewOutstandingAccounts" />
|
||||
<telerik:RadMenuItem runat="server" Text="XYZ Debug Ledgers" NavigateUrl="~/Pages/v5/Ledgers/DebugLedgers.aspx" ImageUrl="~/Images/PageIcons/iconshock-tester-16px.png" Permission="EconomyDetail:Read" UserLevel="3" GlobalResourceKey="Menu5_Ledgers_DebugLedgers" />
|
||||
<telerik:RadMenuItem runat="server" Text="XYZ Close Ledgers" NavigateUrl="~/Pages/v5/Ledgers/CloseLedgers.aspx" Template="CloseLedgers" Dynamic="true" ImageUrl="~/Images/PageIcons/iconshock-ledger-lock-16px.png" Permission="EconomyDetail:Write" UserLevel="3" GlobalResourceKey="Menu5_Ledgers_CloseLedgers" />
|
||||
<telerik:RadMenuItem runat="server" IsSeparator="true" UserLevel="3" />
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeFile="ViewOutstandingAccounts.aspx.cs" Inherits="Swarmops.Frontend.Pages.v5.Ledgers.ViewOutstandingAccounts" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" Runat="Server">
|
||||
<h2><asp:Label runat="server" ID="ViewOutstandingAccountsHeader" Text="XYZ View Outstanding" /> <asp:DropDownList runat="server" ID="DropAccounts"/> <asp:DropDownList runat="server" ID="DropYears"/> <img alt="Loading" src="/Images/Abstract/ajaxloader-blackcircle.gif" ID="imageLoadIndicator" /></h2>
|
||||
|
||||
<table id="GridOutstandingAccounts" class="easyui-datagrid" style="width:680px;height:500px"
|
||||
data-options="rownumbers:false,singleSelect:false,nowrap:false,fit:false,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-OpenAccounts.aspx'"
|
||||
idField="itemId">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-options="field:'ID',width:70"><asp:Label ID="LabelGridHeaderDue" runat="server" Text="ID"/></th>
|
||||
<th data-options="field:'created',width:70,sortable:true"><asp:Label ID="LabelGridHeaderRecipient" runat="server" Text="XYZ Created" /></th>
|
||||
<th data-options="field:'due',width:70"><asp:Label ID="LabelGridHeaderBank" runat="server" Text="XYZ Due" /></th>
|
||||
<th data-options="field:'personorg',width:140,sortable:true"><asp:Label ID="LabelGridHeaderAccount" runat="server" Text="XYZ Person / Organization" /></th>
|
||||
<th data-options="field:'reference',width:180,sortable:true,order:'asc'"><asp:Label ID="LabelGridHeaderDescription" runat="server" Text="XYZ Description" /></th>
|
||||
<th data-options="field:'amount',width:100,align:'right'"><asp:Label ID="LabelGridHeaderAmount" runat="server" Text="XYZ Amount" /></th>
|
||||
<th data-options="field:'action',width:43,align:'center'"><asp:Label ID="LabelGridHeaderPaid" runat="server" Text="XYZPaid" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderSide" Runat="Server">
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
{
|
||||
public partial class ViewOutstandingAccounts : PageV5Base
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!this.CurrentOrganization.IsEconomyEnabled)
|
||||
{
|
||||
Response.Redirect("/Pages/v5/Financial/EconomyNotEnabled.aspx", true);
|
||||
return;
|
||||
}
|
||||
|
||||
this.PageIcon = "iconshock-cabinet";
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
Localize();
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
int year = DateTime.Today.Year;
|
||||
int firstFiscalYear = CurrentOrganization.FirstFiscalYear;
|
||||
|
||||
this.DropYears.Items.Add(new ListItem("XYZ Today", "Now"));
|
||||
|
||||
while (year >= firstFiscalYear)
|
||||
{
|
||||
this.DropYears.Items.Add(new ListItem(new DateTime(year, 12, 31).ToShortDateString(), year.ToString(CultureInfo.InvariantCulture)));
|
||||
year--;
|
||||
}
|
||||
|
||||
this.DropAccounts.Items.Add(new ListItem(Resources.Global.Financial_ExpenseClaimsLong, "Expenses"));
|
||||
|
||||
Localize();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void Localize()
|
||||
{
|
||||
this.PageTitle = Resources.Pages.Ledgers.ViewOutstandingAccounts_PageTitle;
|
||||
this.InfoBoxLiteral = Resources.Pages.Ledgers.ViewOutstandingAccounts_Info;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user