Estimate hooks: replaceable Create Estimate link and per-estimate actions

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
This commit is contained in:
Claude committed 2026-10-29 23:56:07 -04:00
1 parent 6ec8853508
commit afca8eb6ea
4 files changed
+15 -3

No files matched your search

+4 -1
View File
@@ -7,7 +7,10 @@
<div class="estimate_id attribute">
<div class="label"><span><%=t(:field_estimate)%></span>:</div>
<div class="value"><%= estimate_link %></div>
<div class="value">
<%= estimate_link %>
<%= call_hook :view_estimate_actions, { estimate: issue.estimate } if issue.estimate %>
</div>
</div>
<div class="invoice_id attribute">