Invoice - select time records in a single query