Skip to content

Commit

Permalink
Group cancellation fields and titleize headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyprivett committed Nov 27, 2024
1 parent 46f227d commit d43b2b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/services/moves/exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class Exporter
'To location code',
'Additional information',
'Date of travel',
'Cancelled at',
'PNC number',
'Prison number',
'Last name',
Expand Down Expand Up @@ -55,12 +54,13 @@ class Exporter
'Not to be released details',
'Requires special vehicle',
'Requires special vehicle details',
'cancellation_reason',
'cancellation_reason_comment',
'cancelled_by',
'journey_billable',
'difference',
'journey_supplier',
'Cancelled at',
'Cancelled by',
'Cancellation reason',
'cancellation reason comment',
'Journey billable',
'Difference',
'Supplier',
].freeze

def initialize(moves)
Expand Down Expand Up @@ -101,7 +101,6 @@ def attributes_row(move)
move.to_location&.nomis_agency_id, # To location code
move.additional_information, # Additional information
move.date&.strftime('%Y-%m-%d'), # Date of travel
cancellation_event&.occurred_at, # Cancelled at
person&.police_national_computer, # PNC number
person&.prison_number, # Prison number
person&.last_name, # Last name
Expand All @@ -124,9 +123,10 @@ def attributes_row(move)
answer_details(answers, 'interpreter'), # Sign or other language interpreter details
answer_details(answers, 'not_to_be_released'), # Not to be released details
answer_details(answers, 'special_vehicle'), # Requires special vehicle details,
cancellation_event&.occurred_at, # Cancelled at
cancellation_event&.created_by,
move.cancellation_reason,
move.cancellation_reason_comment,
cancellation_event&.created_by,
move.billable?,
cancellation_difference(move, cancellation_event),
move.supplier&.name,
Expand Down

0 comments on commit d43b2b2

Please sign in to comment.