Skip to content

Commit

Permalink
updated name logic
Browse files Browse the repository at this point in the history
  • Loading branch information
agravell047 committed Apr 25, 2024
1 parent 0797f10 commit 08e1e07
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ def get_field_data(field, data)
when /dispensed_date/
data[:sorted_dispensed_date]
when 'prescription_name'
if data.disp_status != 'Active: Non-VA' || data.prescription_name
if data[:disp_status] == 'Active: Non-VA' && data[:prescription_name].nil?
data[:orderable_item]
elsif !data[:prescription_name].nil?
data[:prescription_name]
else
data[:orderable_item]
'~'
end
when 'disp_status'
data[:disp_status]
Expand Down

0 comments on commit 08e1e07

Please sign in to comment.