Browse Source

Added summary to "Cost $" column on ProgressClaimGrid

Kenric Nugteren 9 months ago
parent
commit
bb0a9b8e79
1 changed files with 5 additions and 1 deletions
  1. 5 1
      prs.desktop/Panels/Invoices/ProgressClaim/ProgressClaimGrid.cs

+ 5 - 1
prs.desktop/Panels/Invoices/ProgressClaim/ProgressClaimGrid.cs

@@ -437,7 +437,11 @@ public class ProgressClaimGrid : DynamicItemsListGrid<ProgressClaim>
         {
             Format = "C2",
             HeaderText = "Claim $",
-            Width = 100
+            Width = 100,
+            GetSummary = () =>
+            {
+                return new DynamicGridCustomSummary(rows => rows.Sum(x => LoadItem(x).Cost), "C2");
+            }
         });
 
         return columns;