[#43] MemberAdminWindow: Do not use Context from ContextWindow any more

This commit is contained in:
2024-03-10 13:05:15 +01:00
parent 239b8a9091
commit 1eba3d9d20
6 changed files with 86 additions and 72 deletions

View File

@ -149,7 +149,7 @@
@Raw(Model.PrintBucketTable(Model.Season, Model.MemberBuckets, includeDelivery: false))
@{
var areaComs = Model.Member.ActiveAreaCommitments.GroupBy(a => a.AreaComType).Select(group => new {
var areaComs = Model.ActiveAreaCommitments.GroupBy(a => a.AreaComType).Select(group => new {
AreaComType = group.Key,
AreaComs = group.OrderBy(c => c.Kg.AtKg.Name),
Size = group.Sum(c => c.Area)
@ -205,7 +205,7 @@
}
<tr class="sum bold">
<td colspan="3">Gesamt:</td>
<td class="number">@($"{Model.Member.ActiveAreaCommitments.Select(a => a.Area).Sum():N0}")</td>
<td class="number">@($"{Model.ActiveAreaCommitments.Sum(a => a.Area):N0}")</td>
<td colspan="2"></td>
</tr>
</tbody>