diff --git a/app/views/estimates/_list.html.erb b/app/views/estimates/_list.html.erb index 87dd382..9974e7a 100644 --- a/app/views/estimates/_list.html.erb +++ b/app/views/estimates/_list.html.erb @@ -2,7 +2,7 @@ <% estimates.sort.reverse.each do |estimate| %>
- <%= check_box_tag "estimate_ids[]", estimate.id, false, onchange: "updateLink()", data: { url: estimates_path(estimate), text: "Estimate ##{estimate.to_s}" }, class: "estimate-checkbox appointment" %> + <%= check_box_tag "estimate_ids[]", estimate.id, false, onchange: "updateLink()", data: { url: estimate_path(estimate), text: "Estimate ##{estimate.to_s}" }, class: "estimate-checkbox appointment" %> <%= link_to "##{estimate.doc_number}", estimate_path(estimate), target: :_blank %> <%= estimate.txn_date %>
<% end %> diff --git a/config/routes.rb b/config/routes.rb index b6a7441..bfa4abd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -22,9 +22,9 @@ get 'employees/sync', to: 'employees#sync' post 'qbo/webhook', to: 'qbo#webhook' # Estimate & Invoice PDF -get 'estimates/:id', to: 'estimate#show', as: :estimate -get 'estimates/doc/', to: 'estimate#doc', as: :estimate_doc -get 'invoices/:id', to: 'invoice#show', as: :invoice +get 'estimates/:id', to: 'estimates#show', as: :estimate +get 'estimates/doc/', to: 'estimates#doc', as: :estimate_doc +get 'invoices/:id', to: 'invoices#show', as: :invoice #manual billing get 'bill/:id', to: 'qbo#bill', as: :bill