Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this method was causing an issue since abbreviation isn't required #183

Merged
merged 1 commit into from
Nov 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/models/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,14 @@ def display_service_name(charge_code = false)
end

def display_service_abbreviation
if self.cpt_code and !self.cpt_code.blank?
if self.abbreviation.blank?
service_abbreviation = self.name
elsif self.cpt_code and !self.cpt_code.blank?
service_abbreviation = self.abbreviation + " (#{self.cpt_code})"
else
service_abbreviation = self.abbreviation
end

return service_abbreviation
end

Expand Down