Fixed style and JSON bugs in P&L, balance

This commit is contained in:
Rick Falkvinge
2014-11-21 09:14:55 +01:00
parent 1984382cf6
commit 3975605035
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
Localize();
}
this.EasyUIControlsUsed = EasyUIControl.DataGrid;
this.EasyUIControlsUsed = EasyUIControl.DataGrid | EasyUIControl.Tree;
}
@@ -68,7 +68,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
foreach (YearlyReportLine line in reportLines)
{
string element = string.Format("\"id\":{0},\"name\":\"{1}\"", line.AccountId,
string element = string.Format("\"id\":\"{0}\",\"name\":\"{1}\"", line.AccountId,
JsonSanitize(line.AccountName));
if (line.Children.Count > 0)
@@ -80,7 +80,7 @@ public partial class Pages_v5_Ledgers_Json_ProfitLossData : DataV5Base
foreach (YearlyReportLine line in reportLines)
{
string element = string.Format("\"id\":{0},\"name\":\"{1}\"", line.AccountId,
string element = string.Format("\"id\":\"{0}\",\"name\":\"{1}\"", line.AccountId,
JsonSanitize(line.AccountName));
if (line.Children.Count > 0)
@@ -29,7 +29,7 @@ public partial class Pages_v5_Ledgers_ProfitLossStatement : PageV5Base
Localize();
}
this.EasyUIControlsUsed = EasyUIControl.DataGrid;
this.EasyUIControlsUsed = EasyUIControl.DataGrid | EasyUIControl.Tree;
}
private void Localize()