diff --git a/Site/Pages/v5/Ledgers/BalanceSheet.aspx b/Site/Pages/v5/Ledgers/BalanceSheet.aspx
index 29a4623e..00f46f21 100644
--- a/Site/Pages/v5/Ledgers/BalanceSheet.aspx
+++ b/Site/Pages/v5/Ledgers/BalanceSheet.aspx
@@ -54,7 +54,7 @@
$('#imageLoadIndicator').show();
$('div.datagrid').css('opacity', 0.4);
- $('#tableProfitLoss').treegid('reload');
+ //$('#tableProfitLoss').treegrid('reload');
});
diff --git a/Site/Pages/v5/Ledgers/BalanceSheetSimplified.aspx b/Site/Pages/v5/Ledgers/BalanceSheetSimplified.aspx
index 8772e985..3f368e0e 100644
--- a/Site/Pages/v5/Ledgers/BalanceSheetSimplified.aspx
+++ b/Site/Pages/v5/Ledgers/BalanceSheetSimplified.aspx
@@ -55,7 +55,7 @@
$('#imageLoadIndicator').show();
$('div.datagrid').css('opacity', 0.4);
- $('#tableAnnualReport').treegid('reload');
+ //$('#tableAnnualReport').treegrid('reload');
});
diff --git a/Site/Pages/v5/Ledgers/Json-BalanceSheetDataSimplified.aspx.cs b/Site/Pages/v5/Ledgers/Json-BalanceSheetDataSimplified.aspx.cs
index c69d1998..c736b170 100644
--- a/Site/Pages/v5/Ledgers/Json-BalanceSheetDataSimplified.aspx.cs
+++ b/Site/Pages/v5/Ledgers/Json-BalanceSheetDataSimplified.aspx.cs
@@ -118,14 +118,20 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
if (expanded || treeValue != 0 && singleValue == 0)
{
return string.Format (CultureInfo.CurrentCulture,
- "\"" + sigma + " {1:" + format + "} \"",
- accountId, treeValue/100.00)
- .Replace("---", "—")
- .Replace("-", "−");
+ "\"" + sigma + " " + FormatSingleString(treeValue, format) + "" +
+ " \"",
+ accountId);
}
- return string.Format (CultureInfo.CurrentCulture,
- "\"" + sigma + " {1:" + format + "}{2:" + format + "}\"",
- accountId, treeValue/100.0, singleValue/100.0)
+ return string.Format(CultureInfo.CurrentCulture,
+ "\"" + sigma + " " + FormatSingleString(treeValue, format) + " " + "" +
+ "" + FormatSingleString(singleValue, format) + "\"",
+ accountId);
+
+ }
+
+ private string FormatSingleString(Int64 centsValue, string format = "N0")
+ {
+ return String.Format("{0:" + format + "}", centsValue / 100.0)
.Replace("---", "—")
.Replace("-", "−");
}
diff --git a/Site/Pages/v5/Ledgers/ProfitLossStatement.aspx b/Site/Pages/v5/Ledgers/ProfitLossStatement.aspx
index 37a58a7a..951852ac 100644
--- a/Site/Pages/v5/Ledgers/ProfitLossStatement.aspx
+++ b/Site/Pages/v5/Ledgers/ProfitLossStatement.aspx
@@ -57,7 +57,7 @@
$('#imageLoadIndicator').show();
$('div.datagrid').css('opacity', 0.4);
- $('#tableProfitLoss').treegid('reload');
+ //$('#tableProfitLoss').treegrid('reload');
});