PaymentVariantsWindow: Disable calcualte button when save button is enabled

This commit is contained in:
2024-01-25 01:00:29 +01:00
parent f8d776c028
commit 8909b4a3a8

View File

@ -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() {