Fixed factory controller and views. Improved order_details start_date/end_date calculation.