diff --git a/Site5/Pages/v5/Ledgers/Json-ProfitLossData.aspx.cs b/Site5/Pages/v5/Ledgers/Json-ProfitLossData.aspx.cs
index 71f02c26..81848120 100644
--- a/Site5/Pages/v5/Ledgers/Json-ProfitLossData.aspx.cs
+++ b/Site5/Pages/v5/Ledgers/Json-ProfitLossData.aspx.cs
@@ -79,16 +79,17 @@ public partial class Pages_v5_Ledgers_Json_ProfitLossData : System.Web.UI.Page
string element = string.Format("\"id\":{0},\"name\":\"{1}\"", account.Identity,
account.Name.Replace("\"", "'"));
- element += string.Format(",\"lastYear\":\"{0:N2} ({1:N2})\"", singleLookups[0][account.Identity],
- treeLookups[0][account.Identity]);
-
- element += string.Format(",\"ytd\":\"{0:N2} ({1:N2})\"", singleLookups[5][account.Identity],
- treeLookups[5][account.Identity]);
-
if (treeMap.ContainsKey(account.Identity))
{
+
+ element += string.Format(",\"lastYear\":\"Σ {1:N2}{2:N2}\"", account.Identity, treeLookups[0][account.Identity] / -100.0, singleLookups[0][account.Identity] / -100.0);
+
element += ",\"state\":\"closed\",\"children\":" + RecurseTreeMap(treeMap, account.Identity);
}
+ else
+ {
+ element += string.Format(",\"lastYear\":\"{0:N2}\"", (double) singleLookups[0][account.Identity] / -100.0);
+ }
elements.Add("{" + element + "}");
}
diff --git a/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx b/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx
index 8c724457..2bcf39fd 100644
--- a/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx
+++ b/Site5/Pages/v5/Ledgers/ProfitLossStatement.aspx
@@ -5,12 +5,33 @@
+
P&L for Piratpartiet For Year
-