Skip to content

Commit

Permalink
AP-5335: Remove housing_benefit_regular_transaction_applicable
Browse files Browse the repository at this point in the history
Distinctinction between truelayer and bank statement upload journey
no longer applicable so may as well shortcut it.
  • Loading branch information
jsugarman committed Oct 16, 2024
1 parent 1de8e39 commit 2697d02
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions app/models/legal_aid_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,6 @@ def housing_payments_for?(party)
TransactionType.where(id: owners_transaction_types).for_outgoing_type?(:rent_or_mortgage)
end

def housing_benefit_regular_transaction_applicable?
housing_payments?
end

def truelayer_path?
provider_received_citizen_consent == true
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<%= render "providers/means/check_income_answers/partner_income_assessment" if @legal_aid_application.applicant.has_partner_with_no_contrary_interest? %>
<% if @legal_aid_application.housing_benefit_regular_transaction_applicable? %>
<% if @legal_aid_application.housing_payments? %>
<%= render(
"shared/check_answers/housing_benefit",
read_only: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<!-- HOUSING BENEFIT -->

<section class="print-no-break">
<% if @legal_aid_application.housing_benefit_regular_transaction_applicable? %>
<% if @legal_aid_application.housing_payments? %>
<% individual = @legal_aid_application.applicant.has_partner_with_no_contrary_interest? ? t("generic.client_or_partner") : t("generic.client") %>
<%= render(
"shared/check_answers/housing_benefit",
Expand Down

0 comments on commit 2697d02

Please sign in to comment.