Fix bugs in year end. New functions for previous year sum and daily balance.