reportes, fixed date_from and date_to order in functions, and added where is missing BT#7277