Skip to content

Commit

Permalink
Merge pull request #183 from sparc-request/ac-fix-service-abbreviatio…
Browse files Browse the repository at this point in the history
…n-method

this method was causing an issue since abbreviation isn't required
  • Loading branch information
amcates committed Nov 6, 2015
2 parents 81d9848 + 86a7c71 commit 16562a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,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

0 comments on commit 16562a2

Please sign in to comment.