compat with old Pg used for RADIUS: use str2time_sql_closing
add invnum to payment import, RT#29673