<%=t(:label_details)%>:
<%= render partial: 'customers/details', locals: {customer: @customer} %>
<%=t(:estimates)%>:
<%= render partial: 'estimates/list', locals: {estimates: @customer.estimates} %>
<%=t(:label_invoices)%>:
<%= render partial: 'invoices/list', locals: {invoices: @customer.invoices} %>
<%# Estimate and invoice drafts, kept in Redmine until they're saved to QuickBooks %>
<% customer_drafts = QboDraft.visible.where(customer_id: @customer.id).includes(:user).newest_first.to_a %>
<% if customer_drafts.any? %>
<%= l(:label_qbo_drafts) %>:
<%= render partial: 'qbo_drafts/list', locals: { drafts: customer_drafts, show_customer: false } %>
<% end %>
<%= call_hook :show_customer_view_right, {customer: @customer} %>