extract transactions of a certain year