history_user -> history_usernum
add contract_end to Package age condition, RT#23171