select *
from rpt.frm30r3_19_2101_pg(
$1, 
$2, 
cast($3 as int8), 
cast($4 as int8), 
cast($5 as int8), 
cast($6 as int8), 
cast(to_timestamp($7,'dd.mm.yyyy') as timestamp), 
cast(to_timestamp($8,'dd.mm.yyyy') as timestamp), 
cast($9 as int8), 
cast($10 as int8), 
cast($11 as int8), 
cast($12 as int8), 
cast($13 as int8), 
cast($14 as int8), 
cast($15 as int8))
