Skip to content

Commit

Permalink
extra '' causing error on calendar consolidated request tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ying-pbrc committed Aug 29, 2016
1 parent 05f912c commit a0786d4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -26,7 +26,7 @@
- @protocol.service_requests.each do |service_request|
- service_request.service_list(true).each do |_, value| # get only one time fee services
- value[:line_items].each do |line_item|
- next if %w('first_draft' 'draft').include?(line_item.sub_service_request.status)
- next if %w(first_draft draft).include?(line_item.sub_service_request.status)
%tr.line_item.otfs{ class: cycle('odd', '', name: 'otfs'), :"data-unit_factor" => line_item.service.displayed_pricing_map.unit_factor }
%td.service_name
= line_item.service.name
Expand Down Expand Up @@ -158,7 +158,7 @@
%th.otf{ colspan: (@study_tracker) ? 13 : 16 }
= value[:name]
- value[:line_items].each do |line_item|
- next if %w('first_draft' 'draft').include?(line_item.sub_service_request.status)
- next if %w(first_draft draft).include?(line_item.sub_service_request.status)
- locked = !line_item.sub_service_request.can_be_edited? || line_item.sub_service_request.is_complete?
%tr.line_item.otfs{ class: [cycle('odd', '', name: 'otfs'), locked ? 'locked' : ''], :"data-unit_factor" => line_item.service.displayed_pricing_map.unit_factor }
%td.service_name
Expand Down

0 comments on commit a0786d4

Please sign in to comment.