diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs
index 33d4c4a2..35a78473 100644
--- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs
+++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs
@@ -71,12 +71,12 @@ namespace Swarmops.Frontend.Pages.Ledgers
{
// Group header
- builder.AppendFormat(@"
+ builder.Append(@"
- $('#TableEomItems').datagrid('appendRow', " + '{' + @"
- itemGroupName: '{0}',
- itemId: '{1}'
- " + '}' + @");
+ $('#TableEomItems').datagrid('appendRow', {
+ itemGroupName: '" + group.Header.Replace(" ", " ").Replace("'", "''") + @"',
+ itemId: '" + group.Id + @"'
+ });
rowCount = $('#TableEomItems').datagrid('getRows').length;
@@ -87,17 +87,16 @@ namespace Swarmops.Frontend.Pages.Ledgers
field: 'itemGroupName'
});
- ", group.Header.Replace(" ", " ").Replace("'", "''"), group.Id);
+ ");
foreach (EomItem item in group.Items)
{
- builder.AppendFormat(@"
+ builder.Append(@"
$('#TableEomItems').datagrid('appendRow', " + '{' + @"
- itemName: '{0}',
- docs: ""
"",
- actions: ""
""
+ itemName: '" + item.Name + @"',
+ action: ""
""
});
- ", item.Name);
+ ");
}
}
}