CreditNoteDeliveryData: Include WeighingModifier only if delivery modifiers are considered

This commit is contained in:
2025-05-20 13:02:05 +02:00
parent 0dff3986b7
commit 336aef5c70
4 changed files with 9 additions and 9 deletions

View File

@ -671,7 +671,7 @@ namespace Elwig.Windows {
var avnr = details.Item2;
try {
cnData[(year, avnr)] = (
await CreditNoteDeliveryData.ForPaymentVariant(ctx.CreditNoteDeliveryRows, ctx.Seasons, year, avnr),
await CreditNoteDeliveryData.ForPaymentVariant(ctx.CreditNoteDeliveryRows, ctx.PaymentVariants, year, avnr),
await ctx.MemberPayments.Where(p => p.Year == year && p.AvNr == avnr).ToDictionaryAsync(c => c.MgNr),
BillingData.FromJson((await ctx.PaymentVariants.FindAsync(year, avnr))!.Data)
);