Skip to content

Commit

Permalink
Merge pull request #38 from bmic-development/jl-auditing-report-bug
Browse files Browse the repository at this point in the history
Jl - Auditing report bug
  • Loading branch information
Stuart-Johnson committed Jul 11, 2017
2 parents 3ec364b + 23442c9 commit 4ae0a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reports/auditing_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def generate(document)

protocols = Protocol.find(@params[:protocols])

if @params[:service_type] == "Per Patient Per Visit"
if @params[:service_type] == "Clinical Services"
csv << ["From", format_date(Time.strptime(@params[:start_date], "%m/%d/%Y")), "To", format_date(Time.strptime(@params[:end_date], "%m/%d/%Y"))]
csv << [""]
csv << [""]
Expand Down Expand Up @@ -86,7 +86,7 @@ def generate(document)
]
end
end
elsif @params[:service_type] == "One Time Fees"
else
csv << ["From", format_date(Time.strptime(@params[:start_date], "%m/%d/%Y")), "To", format_date(Time.strptime(@params[:end_date], "%m/%d/%Y"))]
csv << [""]
csv << [""]
Expand Down

0 comments on commit 4ae0a4b

Please sign in to comment.