diff --git a/README.md b/README.md index b8c3581..bd4f98f 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ Available hooks: |--|--|--| View Hook|:view_customers_show_contextual, { customer: @customer } | Used to add action links to the customer page's top-right action area (return links styled like Redmine's, e.g. `link_to sprite_icon('add', 'Label'), path, class: 'icon icon-add'`). Replaces `customer_actions_top` / `customer_actions_bottom` View Hook|:view_customers_show_estimate_link, { customer: @customer } | Replaces the customer page's Create Estimate link (which opens QuickBooks) with the link a plugin returns +View Hook|:view_invoice_actions, { invoice: invoice } | Used to add small action links after an invoice on the customer page's invoice list (e.g. an Edit link) View Hook|:view_estimate_actions, { estimate: estimate } | Used to add small action links after an estimate on the customer page's estimate list and the issue page (e.g. an Edit link) View Hook|:pdf_left, { issue: issue } | Used to add text to left side of PDF View Hook|:pdf_right, { issue: issue } | Used to add text to right side of PDF diff --git a/app/views/invoices/_list.html.erb b/app/views/invoices/_list.html.erb index 33f8560..21fd0ae 100644 --- a/app/views/invoices/_list.html.erb +++ b/app/views/invoices/_list.html.erb @@ -14,6 +14,7 @@
<%= check_box_tag "invoice_ids[]", invoice.id, false, onchange: "updateLink()", data: { url: invoice_path(invoice), text: "Invoice ##{invoice.to_s}" }, class: "invoice-checkbox appointment" if invoices.count > 1 %> <%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %> <%= invoice.txn_date %> + <%= call_hook :view_invoice_actions, { invoice: invoice } %>
<% end %>