Work on General Ledger
This commit is contained in:
@@ -343,10 +343,10 @@
|
||||
|
||||
<div id="divTabs" class="easyui-tabs" data-options="tabWidth:70,tabHeight:70">
|
||||
<div class="tab" title="<img src='/Images/Icons/iconshock-groups-docs-lists-64px.png' height='64' width='64' />">
|
||||
<h2><asp:Label ID="LabelHeaderGeneral" runat="server" /> <asp:Label ID="Label2" runat="server" /> <asp:DropDownList runat="server" ID="DropGeneralYears"/> <asp:DropDownList runat="server" ID="DropGeneralMonths"/></h2>
|
||||
<h2><asp:Label ID="LabelHeaderGeneral" runat="server" /> <asp:DropDownList runat="server" ID="DropGeneralYears"/> <asp:DropDownList runat="server" ID="DropGeneralMonths"/></h2>
|
||||
|
||||
<table id="treeGeneralLedger" class="easyui-treegrid" style="width: 680px; height: 500px"
|
||||
data-options="rownumbers:false,singleSelect:false,nowrap:false,fitColumns:true,fit:false,showFooter:false,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-GeneralLedgerData.aspx'"
|
||||
data-options="rownumbers:false,singleSelect:false,nowrap:false,fitColumns:true,fit:false,showFooter:false,loading:false,selectOnCheck:true,checkOnSelect:true,url:'Json-GeneralLedgerData.aspx?Year=2017&Month=12'"
|
||||
idField="id" treeField="id">
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -84,6 +84,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
{
|
||||
this.LabelHeaderInspect.Text = Resources.Pages.Ledgers.InspectLedgers_Header_Inspect;
|
||||
this.LabelHeaderInspectFor.Text = Resources.Pages.Ledgers.InspectLedgers_Header_For;
|
||||
this.LabelHeaderGeneral.Text = Resources.Pages.Ledgers.InspectLedgers_GeneralLedger;
|
||||
|
||||
this.LabelGridHeaderAction.Text = this.LabelTreeHeaderAction.Text = Global.Global_Action;
|
||||
this.LabelGridHeaderBalance.Text = this.LabelTreeHeaderBalance.Text = Global.Ledgers_Balance;
|
||||
@@ -93,7 +94,6 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
this.LabelGridHeaderDescription.Text = Global.Global_Description;
|
||||
this.LabelTreeHeaderDescriptionAccount.Text = Resources.Pages.Ledgers.InspectLedgers_Detail;
|
||||
this.LabelGridHeaderId.Text = this.LabelTreeHeaderId.Text = Resources.Pages.Ledgers.InspectLedgers_TransactionId;
|
||||
|
||||
|
||||
this.LabelGridHeaderAccountName.Text = Resources.Pages.Ledgers.InspectLedgers_AccountName;
|
||||
this.LabelGridHeaderDateTimeEntered.Text = Resources.Pages.Ledgers.InspectLedgers_LoggedDate;
|
||||
|
||||
@@ -84,15 +84,6 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelHeaderGeneral;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// DropGeneralYears control.
|
||||
/// </summary>
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
throw new UnauthorizedAccessException ("All the nopes in the world");
|
||||
}
|
||||
|
||||
if (!CurrentAuthority.HasAccess (new Access (CurrentOrganization, AccessAspect.Bookkeeping, AccessType.Read)))
|
||||
if (!CurrentAuthority.HasAccess (new Access (CurrentOrganization, AccessAspect.Bookkeeping, AccessType.Read)) && CurrentOrganization.HasOpenLedgers)
|
||||
{
|
||||
throw new UnauthorizedAccessException ("Access denied because security tokens say so");
|
||||
}
|
||||
@@ -160,11 +160,11 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
|
||||
if (row.AmountCents < 0)
|
||||
{
|
||||
creditString = String.Format ("{0:N0}", row.AmountCents/100.0);
|
||||
creditString = String.Format ("{0:N2}", row.AmountCents/100.0);
|
||||
}
|
||||
else if (row.AmountCents > 0)
|
||||
{
|
||||
debitString = String.Format ("{0:N0}", row.AmountCents/100.0);
|
||||
debitString = String.Format ("{0:N2}", row.AmountCents/100.0);
|
||||
}
|
||||
|
||||
runningBalance += row.AmountCents;
|
||||
|
||||
@@ -432,6 +432,13 @@
|
||||
<Compile Include="Pages\v5\Ledgers\Json-AccountPlanData.aspx.designer.cs">
|
||||
<DependentUpon>Json-AccountPlanData.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Pages\v5\Ledgers\Json-GeneralLedgerData.aspx.cs">
|
||||
<DependentUpon>Json-GeneralLedgerData.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Pages\v5\Ledgers\Json-GeneralLedgerData.aspx.designer.cs">
|
||||
<DependentUpon>Json-GeneralLedgerData.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Pages\v5\Ledgers\Json-VatReportData.aspx.cs">
|
||||
<DependentUpon>Json-VatReportData.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -1157,6 +1164,7 @@
|
||||
<Content Include="Pages\v5\Ledgers\DebugLedgers.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\InspectLedgers.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\Json-AccountPlanData.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\Json-GeneralLedgerData.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\Json-VatReportData.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\Json-BalanceSheetDataSimplified.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\Json-BalanceSheetData.aspx" />
|
||||
|
||||
@@ -33,6 +33,25 @@ html, body, input, select
|
||||
}
|
||||
|
||||
|
||||
/* WEIGHTS */
|
||||
|
||||
.weight-normal, .light {
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.weight-emphasis {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.weight-more-emphasis, .medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.weight-most-emphasis, .bold {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
/* BASE */
|
||||
|
||||
body
|
||||
|
||||
Reference in New Issue
Block a user