BillingVariant: Assume price to be 0 for undefined vaributes
Test / Run tests (push) Successful in 1m56s

This commit is contained in:
lorenz.stechauner committed 2025-10-28 13:15:24 +01:00
1 parent 2de8af878b
commit 428cd6ddc2
3 files changed
+28 -7

No files matched your search

+3 -1
View File
@@ -664,8 +664,10 @@ namespace Elwig.Windows {
try {
await Task.Run(async () => {
var b = new BillingVariant(PaymentVar.Year, PaymentVar.AvNr);
await b.Calculate();
await b.Calculate(false);
});
} catch (KeyNotFoundException exc) {
MessageBox.Show(exc.Message, "Noch nicht alle Preise festgelegt", MessageBoxButton.OK, MessageBoxImage.Information);
} catch (Exception exc) {
MessageBox.Show(exc.Message, "Berechnungsfehler", MessageBoxButton.OK, MessageBoxImage.Error);
}