PaymentVariantsWindow: Disable calcualte button when save button is enabled

This commit is contained in:
lorenz.stechauner committed 2024-01-25 01:00:29 +01:00
1 parent f8d776c028
commit 8909b4a3a8
1 file changed
+1
@@ -134,6 +134,7 @@ namespace Elwig.Windows {
(ConsiderPenaltiesInput.IsChecked != BillingData?.ConsiderContractPenalties) ||
(ConsiderPenaltyInput.IsChecked != BillingData?.ConsiderTotalPenalty) ||
(ConsiderAutoInput.IsChecked != BillingData?.ConsiderAutoBusinessShares));
CalculateButton.IsEnabled = !SaveButton.IsEnabled && PaymentVariantList.SelectedItem is PaymentVar { TestVariant: true };
}
private void UpdateSums() {