diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index 9ad02c5..a329f09 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -57,8 +57,12 @@ update xcube set restriction='<> /* AND ca109_key_bvl in <@printkeys .vars["BVL-Gruppe"].allNeededKeysList/> --<> */ /* AND ca108_amtsbez in <@printkeys Amtsbezeichnung.allNeededKeysList/> --<> */ /* AND vertart in <@printkeys Vertragsart.allNeededKeysList/> --<> */ -/* and trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0) <= <> */ - +/* and trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0) <= <> */ +/* and ${datum_stichtag} between d_besch_von and d_besch_bis and d_befristung <= date_val(<>) */ +/* and geschlecht = <> */ + /* AND ch212_geldgeber in <@printkeys Geldgeber.allNeededKeysList/> --<> */ +/* and ca501_staat <> */ +/* and <> */ ' where maskeninfo_id=21200;