diff --git a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql index 18f0aa6..68794c4 100644 --- a/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql +++ b/src-modules/module/xcube/schluesseltabellen/xcube_install_restrictions.sql @@ -57,12 +57,13 @@ 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) <= <> */ +<#if "<>"!=""> and ${Alter.selectedItems[0].strukturStr?replace("$1","alter")} /* 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 <> */ +<#if "<>"!=""> and ${Alter.selectedItems[0].strukturStr?replace("$1","trunc((${datum_stichtag} - geburtsdatum) / 365.25 , 0)")} ' where maskeninfo_id=21200;