From b406b233d8f97b4cb56c68f78df215985efc7c51 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 5 Dec 2018 17:04:00 +0100 Subject: [PATCH] Adding UX for completed groups --- Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs index 47329504..65b42960 100644 --- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs +++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs @@ -81,13 +81,22 @@ namespace Swarmops.Frontend.Pages.Ledgers previousGroupIdData = " data-previous-group='" + previousGroupId + "'"; } + bool groupReady = true; + foreach (EomItem item in group.Items) + { + if (!item.Completed) + { + groupReady = false; + } + } + // Group header builder.Append(@" $('#TableEomItems').datagrid('appendRow', { itemGroupName: '" + group.Header.Replace(" ", " ").Replace("'", "''") + @"', - action: """", + action: """", itemId: '" + group.Id + @"' });