mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-11-21 10:50:37 -05:00
Refund emails and PDFs take the shop name and mail settings from :qbo_mail_settings instead of reading redmine_qbo_reminders' settings; the customer page's ticked boxes use generic data-ticked-field/data-ticked-params instead of knowing redmine_qbo_calendar's Add appointment link; and Create issues carries the params plugins name in :qbo_billing_issue_carry_params instead of appointment_id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.4 KiB
ERB
25 lines
1.4 KiB
ERB
<% unless estimates.empty? %>
|
|
|
|
<%= render partial: 'qbo_estimates/status_styles' %>
|
|
<div class="qbo-estimate-list">
|
|
<% estimates.sort.reverse.each do |estimate| %>
|
|
<%# One cell each (qbo_estimates/_status_styles lines them up in columns, so the icons line up) %>
|
|
<div class="row">
|
|
<%# Ticking an estimate adds it to the customer page's links (customers/_new_issue_link_script) %>
|
|
<span class="qbo-list-check"><%= check_box_tag "estimate_ids[]", estimate.id, false, data: { ticked_field: 'estimate_id' }, class: "estimate-checkbox" if local_assigns[:new_issue_checkboxes] %></span>
|
|
<b class="qbo-list-number"><%= link_to "##{estimate.doc_number}", estimate_path(estimate), target: :_blank %></b>
|
|
<span class="qbo-list-date"><%= estimate.txn_date %></span>
|
|
<%# QuickBooks status, cached by the estimate sync (kept current by the webhook) %>
|
|
<span class="qbo-list-status">
|
|
<% if estimate.txn_status.present? %>
|
|
<span class="qbo-estimate-status qbo-estimate-status-<%= estimate.txn_status.downcase %>"><%= estimate.txn_status %></span>
|
|
<% end %>
|
|
</span>
|
|
<span class="qbo-list-actions"><%= render partial: 'qbo_estimates/estimate_actions', locals: { estimate: estimate } if RedmineQboBilling.writer? %></span>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% else %>
|
|
<p><%=t(:label_no_estimates)%>.</p>
|
|
<% end %> |