Compare commits

..

2 Commits

Author SHA1 Message Date
4cc082d500 ChartWindow: Automatically calculate variant when saved
All checks were successful
Test / Run tests (push) Successful in 1m40s
2025-07-03 11:51:43 +02:00
04761396e1 PaymentVariantsWindow: Add estimates for uncommited variants 2025-07-03 11:51:35 +02:00

View File

@@ -251,10 +251,10 @@ namespace Elwig.Windows {
foreach (int mgnr in currentPayments.Keys) {
var c = currentPayments[mgnr];
var l = lastPayments[mgnr];
vatSum += (c.Amount - l.Amount) * (c.Member.IsBuchführend ? 0.1m : 0.13m);
vatSum += (c.Amount - l.Amount) * (decimal)(c.Member.IsBuchführend ? v.Season.VatNormal : v.Season.VatFlatrate);
}
} else {
vatSum = currentPayments.Sum(e => e.Value.Amount * (e.Value.Member.IsBuchführend ? 0.1m : 0.13m));
vatSum = currentPayments.Sum(e => e.Value.Amount * (decimal)(e.Value.Member.IsBuchführend ? v.Season.VatNormal : v.Season.VatFlatrate));
}
vatText = $"~{vatSum:N2} {sym}";
deductionText = $"- {sym}";