ChartWindow: Automatically calculate variant when saved
This commit is contained in:
@ -651,6 +651,12 @@ namespace Elwig.Windows {
|
||||
ctx.Update(PaymentVar);
|
||||
await ctx.SaveChangesAsync();
|
||||
}
|
||||
try {
|
||||
var b = new BillingVariant(PaymentVar.Year, PaymentVar.AvNr);
|
||||
await b.Calculate();
|
||||
} catch (Exception exc) {
|
||||
MessageBox.Show(exc.Message, "Berechnungsfehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||
}
|
||||
LockContext = false;
|
||||
App.HintContextChange();
|
||||
} catch (Exception exc) {
|
||||
|
Reference in New Issue
Block a user