From fae94d01a31236f0c1450b0c3a69b1d834e48b2e Mon Sep 17 00:00:00 2001 From: foefl Date: Wed, 8 Jul 2026 11:38:03 +0200 Subject: [PATCH] consulting page disable type selection if pre-defined --- src/wce_crm/gui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wce_crm/gui.py b/src/wce_crm/gui.py index 49fd522..ed0a70e 100644 --- a/src/wce_crm/gui.py +++ b/src/wce_crm/gui.py @@ -3846,6 +3846,12 @@ class Page_Consulting(QWidget): case ConsultingType.INDIVIUAL: self.type_individual_btn.setChecked(True) + # deactivate if at least one ID is set (type is pre-defined by how + # the site is called) + if self.STATE.un_id or self.STATE.pers_id: + self.type_pauschal_btn.setEnabled(False) + self.type_individual_btn.setEnabled(False) + # call to child modules not needed because these are initialised by their own # "load_state" method which again calls the modules sync method