diff --git a/app/views/providers/means_reports/_dependants.html.erb b/app/views/providers/means_reports/_dependants.html.erb deleted file mode 100644 index ff22c064b9..0000000000 --- a/app/views/providers/means_reports/_dependants.html.erb +++ /dev/null @@ -1,30 +0,0 @@ -

<%= t("providers.means_reports.dependants_heading") %>

- -
- <%= check_answer_link( - name: "child_dependants", - question: t("providers.means_reports.child_dependants"), - answer: @legal_aid_application.dependants.child_relative.count, - read_only:, - ) %> - - <%= check_answer_link( - name: "adult_dependants", - question: t("providers.means_reports.adult_dependants"), - answer: @legal_aid_application.dependants.adult_relative.count, - read_only:, - ) %> -
- -<% if @legal_aid_application.dependants %> - <% @legal_aid_application.dependants.each_with_index do |dependant, index| %> - <%= render( - "shared/check_answers/one_link_section", - name: "dependants_#{index + 1}", - url: providers_legal_aid_application_means_dependant_path(@legal_aid_application, dependant), - question: "Dependant #{index + 1}: #{dependant.name}", - answer_hash: dependant_hash(dependant), - read_only:, - ) %> - <% end %> -<% end %> diff --git a/app/views/providers/means_reports/_income_cash_payments.html.erb b/app/views/providers/means_reports/_income_cash_payments.html.erb deleted file mode 100644 index 6661327080..0000000000 --- a/app/views/providers/means_reports/_income_cash_payments.html.erb +++ /dev/null @@ -1,36 +0,0 @@ -

<%= t("providers.means_reports.income_cash_payments_heading") %>

- -<% credits = @legal_aid_application.legal_aid_application_transaction_types.credits %> -<% cash_credits = @legal_aid_application.cash_transactions.credits.order(:transaction_date) %> -<% credit_categories = TransactionType.credits.not_children %> - -<% if !@legal_aid_application.transaction_types.credits.exists? %> -
<%= t("generic.none") %>
-<% end %> - -
- <% credit_categories.each do |category| %> - <% if credits.pluck(:transaction_type_id).include?(category.id) %> - <% if cash_credits.pluck(:transaction_type_id).include?(category.id) %> - <% cash_payments = cash_credits.where(transaction_type_id: category.id) %> - - <% cash_payment_list = cash_payments.each_with_object([]) do |payment, list| - list << "#{payment.transaction_date.strftime('%B %Y')} #{gds_number_to_currency(payment.amount, precision: 2)}" - end %> - <%= check_answer_link( - name: category.label_name, - question: category.label_name, - answer: cash_payment_list, - read_only: true, - ) %> - <% else %> - <%= check_answer_link( - name: category.label_name, - question: category.label_name, - answer: "None", - read_only: true, - ) %> - <% end %> - <% end %> - <% end %>> -
diff --git a/app/views/providers/means_reports/_income_categories.html.erb b/app/views/providers/means_reports/_income_categories.html.erb deleted file mode 100644 index fa8d409412..0000000000 --- a/app/views/providers/means_reports/_income_categories.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -

<%= t("providers.means_reports.income_categories_heading") %>

- -<% credits = @legal_aid_application.legal_aid_application_transaction_types.credits %> -<% credit_categories = TransactionType.credits.not_children %> - -
- <% credit_categories.each do |category| %> - <% answer = credits.pluck(:transaction_type_id).include?(category.id) %> - - <%= check_answer_link( - name: category.label_name, - question: category.label_name, - answer: safe_yes_or_no(answer), - read_only: true, - ) %> - <% end %> -
diff --git a/app/views/providers/means_reports/_outgoings_cash_payments.html.erb b/app/views/providers/means_reports/_outgoings_cash_payments.html.erb deleted file mode 100644 index 9b00da340a..0000000000 --- a/app/views/providers/means_reports/_outgoings_cash_payments.html.erb +++ /dev/null @@ -1,36 +0,0 @@ -

<%= t("providers.means_reports.outgoings_cash_payments_heading") %>

- -<% debits = @legal_aid_application.legal_aid_application_transaction_types.debits %> -<% cash_debits = @legal_aid_application.cash_transactions.debits.order(:transaction_date) %> -<% debit_categories = TransactionType.debits %> - -<% if !@legal_aid_application.transaction_types.debits.exists? %> -
<%= t("generic.none") %>
-<% end %> - -
- <% debit_categories.each do |category| %> - <% if debits.pluck(:transaction_type_id).include?(category.id) %> - <% if cash_debits.pluck(:transaction_type_id).include?(category.id) %> - <% cash_payments = cash_debits.where(transaction_type_id: category.id) %> - - <% cash_payment_list = cash_payments.each_with_object([]) do |payment, list| - list << "#{payment.transaction_date.strftime('%B %Y')} #{gds_number_to_currency(payment.amount, precision: 2)}" - end %> - - <%= check_answer_link( - name: category.label_name, - question: category.label_name, - answer: cash_payment_list, - read_only: true, - ) %> - <% else %> - <%= check_answer_link( - name: category.label_name, - question: category.label_name, - answer: t("generic.none"), - read_only: true, - ) %> - <% end %> - <% end %> - <% end %>> diff --git a/app/views/providers/means_reports/_outgoings_categories.html.erb b/app/views/providers/means_reports/_outgoings_categories.html.erb deleted file mode 100644 index 0a9f83a987..0000000000 --- a/app/views/providers/means_reports/_outgoings_categories.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -

<%= t("providers.means_reports.outgoings_categories_heading") %>

- - -<% debits = @legal_aid_application.legal_aid_application_transaction_types.debits %> -<% debit_categories = TransactionType.debits %> - -
- <% debit_categories.each do |category| %> - <% answer = debits.pluck(:transaction_type_id).include?(category.id) %> - - <%= check_answer_link( - name: category.label_name, - question: category.label_name, - answer: safe_yes_or_no(answer), - read_only: true, - ) %> - <% end %> -
diff --git a/app/views/providers/means_reports/_student_finance.html.erb b/app/views/providers/means_reports/_student_finance.html.erb deleted file mode 100644 index 39df762085..0000000000 --- a/app/views/providers/means_reports/_student_finance.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

<%= t("providers.means_reports.student_finance_heading") %>

- -
- <%= check_answer_no_link( - name: :student_finance_annual_amount, - question: "Student loan or grant (per year)", - answer: gds_number_to_currency(@legal_aid_application.applicant.student_finance_amount), - read_only:, - ) %> -