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