From b901e64149382ba22930b92bf965d327e16cff60 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Mon, 17 Aug 2026 20:40:42 -0400 Subject: [PATCH] added new issue link to actions --- app/views/customers/_actions.html.erb | 16 +++++++++------- config/locales/en.yml | 1 + 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app/views/customers/_actions.html.erb b/app/views/customers/_actions.html.erb index bf9ed64..ba7bec2 100644 --- a/app/views/customers/_actions.html.erb +++ b/app/views/customers/_actions.html.erb @@ -1,14 +1,16 @@ <%= call_hook :customer_actions_top, { customer: @customer } %> -<%= link_to t(:label_create_estimate), "https://qbo.intuit.com/app/estimate?nameId=#{@customer.id}", target: :_blank %> +

+ <%= link_to t(:label_new_issue), new_issue_path(issue: { customer_id: @customer.id }), target: :_blank %> +

-
-
+

+ <%= link_to t(:label_create_estimate), "https://qbo.intuit.com/app/estimate?nameId=#{@customer.id}", target: :_blank %> +

-<%= link_to t(:label_create_payment), "https://qbo.intuit.com/app/recvpayment?nameId=#{@customer.id}", target: :_blank %> - -
-
+

+ <%= link_to t(:label_create_payment), "https://qbo.intuit.com/app/recvpayment?nameId=#{@customer.id}", target: :_blank %> +

<%= call_hook :customer_actions_bottom, { customer: @customer } %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 6e1a023..30eaf4c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -65,6 +65,7 @@ en: label_model: "Model" label_name: "Name" label_new_customer: "New Customer" + label_new_issue: "New Issue" label_qbo_never_synced: "Never Synced" label_no_customers: "There are no customers matching the search term(s)." label_no_estimates: "No Estimates"