From 56806e4281a36c00be0530214bfc87761ba0ef29 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 16 Feb 2013 22:44:08 +0000 Subject: [PATCH] Some more cosmetics - final build for tonight --- .../v5/Ledgers/Json-OutstandingAccounts.aspx.cs | 17 +++++++++++++++-- .../v5/Ledgers/ViewOutstandingAccounts.aspx | 4 ++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Site5/Pages/v5/Ledgers/Json-OutstandingAccounts.aspx.cs b/Site5/Pages/v5/Ledgers/Json-OutstandingAccounts.aspx.cs index f0cdbbc4..938d3784 100644 --- a/Site5/Pages/v5/Ledgers/Json-OutstandingAccounts.aspx.cs +++ b/Site5/Pages/v5/Ledgers/Json-OutstandingAccounts.aspx.cs @@ -92,11 +92,24 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers result.Remove(result.Length - 1, 1); // remove last comma } - result.Append("],\"footer\":[{"); + result.Append("],\"footer\":["); - result.AppendFormat("\"id\":\"{0}\",\"amount\":\"{2:N2}\"", + result.Append("{"); + + result.AppendFormat("\"description\":\"{0}\",\"amount\":\"{2:N2}\"", "Total", balanceExpectedCents, centsTotal/100.0); + result.Append("},{"); + + result.AppendFormat("\"description\":\"{0}\",\"amount\":\"{2:N2}\"", + "Expected", balanceExpectedCents, centsTotal / 100.0); + + result.Append("},{"); + + result.AppendFormat("\"description\":\"{0}\",\"amount\":\"{2:N2}\"", + "Difference", balanceExpectedCents, 0.0); + + result.Append("}]}"); // on separate line to suppress warning return result.ToString(); diff --git a/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx b/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx index f531ad5d..1b5a5435 100644 --- a/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx +++ b/Site5/Pages/v5/Ledgers/ViewOutstandingAccounts.aspx @@ -55,6 +55,10 @@ color: #1C397E; letter-spacing: 1px; } + table.datagrid-ftable { + font-weight: 500; + } +