diff --git a/app/models/match_decisions/thirteen/thirteen_hearing_scheduled_decline.rb b/app/models/match_decisions/thirteen/thirteen_hearing_scheduled_decline.rb index e54d3feb0..9a9121828 100644 --- a/app/models/match_decisions/thirteen/thirteen_hearing_scheduled_decline.rb +++ b/app/models/match_decisions/thirteen/thirteen_hearing_scheduled_decline.rb @@ -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 diff --git a/app/models/match_routes/thirteen.rb b/app/models/match_routes/thirteen.rb index af51e63db..9fe11c279 100644 --- a/app/models/match_routes/thirteen.rb +++ b/app/models/match_routes/thirteen.rb @@ -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