Everything is in the report.rb model class and particularly the req_report method.
report.rb
req_report