Skip to content

Commit

Permalink
typo fixes around declines
Browse files Browse the repository at this point in the history
  • Loading branch information
dtgreiner committed Aug 8, 2024
1 parent 997e219 commit 08d9ae4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ def pending
end

def decline_overridden
match.thirteen_hearing_scheuled_decision.update(status: :skipped)
match.thirteen_hearing_scheduled_decision.update(status: :skipped)
match.thirteen_hearing_outcome_decision.initialize_decision!
end

def decline_overridden_returned
# Re-initialize the previous decision
match.thirteen_hearing_scheuled_decision.initialize_decision!
match.thirteen_hearing_scheduled_decision.initialize_decision!
@decision.uninitialize_decision!
end

Expand Down
10 changes: 5 additions & 5 deletions app/models/match_routes/thirteen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ def initial_contacts_for_match
def status_declined?(match)
[
match.thirteen_client_review_decision&.status == 'declined' &&
match.thirteen_client_review_decision_dnd_staff_decision&.status != 'decline_overridden',
match.thirteen_client_review_decline_decision&.status != 'decline_overridden',
match.thirteen_hearing_scheduled_decision&.status == 'declined' &&
match.thirteen_hearing_scheduled_decision_dnd_staff_decision&.status != 'decline_overridden',
match.thirteen_hearing_scheduled_decline_decision&.status != 'decline_overridden',
match.thirteen_hearing_outcome_decision&.status == 'declined' &&
match.thirteen_hearing_outcome_decision_dnd_staff_decision&.status != 'decline_overridden',
match.thirteen_hearing_outcome_decline_decision&.status != 'decline_overridden',
match.thirteen_hsa_review_decision&.status == 'declined' &&
match.thirteen_hsa_review_decision_dnd_staff_decision&.status != 'decline_overridden',
match.thirteen_hsa_review_decline_decision&.status != 'decline_overridden',
match.thirteen_accept_referral_decision&.status == 'declined' &&
match.thirteen_accept_referral_decision_dnd_staff_decision&.status != 'decline_overridden',
match.thirteen_accept_referral_decline_decision&.status != 'decline_overridden',
].any?
end
end
Expand Down

0 comments on commit 08d9ae4

Please sign in to comment.