select * 
from rpt.f131_5001_2021_pg(
cast($1 as bigint),
 $2, 
 cast($3 as bigint), 
 cast(to_timestamp($4,'dd.mm.yyyy') as timestamp))
