Fix calculation of columnDate
The returned date of columnDate was not correct in certain circumstances
so that the price information using this date was incorrect which
resulted in false opening balance values in reports.
BUG: 414932
FIXED-IN: 5.0.8