consulting page disable type selection if pre-defined

This commit is contained in:
2026-07-08 11:38:03 +02:00
parent 770ae11ad6
commit fae94d01a3
+6
View File
@@ -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