mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-17 18:20:36 -05:00
view_customers_show_estimate_link lets a plugin replace the customer page's Create Estimate link (which opens QuickBooks). view_estimate_actions adds links after an estimate on the customer page's list and the issue page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
13 lines
558 B
ERB
13 lines
558 B
ERB
<% unless estimates.empty? %>
|
|
|
|
<% estimates.sort.reverse.each do |estimate| %>
|
|
<div class="row">
|
|
<%= check_box_tag "estimate_ids[]", estimate.id, false, onchange: "updateLink()", data: { text: "Estimate ##{estimate.doc_number}" }, class: "estimate-checkbox appointment" %>
|
|
<b><%= link_to "##{estimate.doc_number}", estimate_path(estimate), target: :_blank %></b> <%= estimate.txn_date %>
|
|
<%= call_hook :view_estimate_actions, { estimate: estimate } %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% else %>
|
|
<p><%=t(:label_no_estimates)%>.</p>
|
|
<% end %> |