From 462fb3d7d15880cf64320615ef91db614e513ec5 Mon Sep 17 00:00:00 2001 From: Marlies Winterstein Date: Tue, 11 Jul 2023 09:47:54 +0200 Subject: [PATCH] =?UTF-8?q?Parameter=20Alter=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcube/schluesseltabellen/xcube_install_restrictions.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;