MemberAdminWindow: Revert caching of MembersDeliveries
All checks were successful
Test / Run tests (push) Successful in 1m46s

This commit is contained in:
2024-09-22 21:01:48 +02:00
parent accbb9df08
commit 1d187c25f3
3 changed files with 7 additions and 6 deletions

View File

@ -187,10 +187,6 @@ namespace Elwig.Windows {
ControlUtils.RenewItemsSource(BranchInput, await ctx.Branches.OrderBy(b => b.Name).ToListAsync());
ControlUtils.RenewItemsSource(DefaultKgInput, await ctx.WbKgs.Select(k => k.AtKg).OrderBy(k => k.Name).ToListAsync());
ViewModel.MembersDeliveries = await ctx.Deliveries
.GroupBy(d => new { d.MgNr, d.Year })
.ToDictionaryAsync(g => (g.Key.MgNr, g.Key.Year), g => g.Any());
var seasons = await ctx.Seasons.OrderByDescending(s => s.Year).ToListAsync();
Menu_DeliveryConfirmation.Items.Clear();
foreach (var s in seasons) {