Redmine Quickbooks

<%= form_for @qbo do |f|%>
<%= f.label "Customer Count:"+@customer_count.to_s%>
<%= f.select :customer_id, Customer.all.pluck(:name, :id).sort, :selected => @selected_customer, include_blank: true %>

<%= f.label "Item Count: "+@qbo_item_count.to_s %>
<%= f.select :qbo_item_id, QboItem.all.pluck(:name, :id).sort.reverse, :selected => @selected_item, include_blank: true %>

<%= f.label "Employee Count: "+@qbo_employee_count.to_s %>
<%= f.select :qbo_employee_id, QboEmployee.all.pluck(:name, :id).sort, :selected => @selected_employee, include_blank: true %>

<%= f.label "Invoice Count: "+@qbo_invoice_count.to_s %>
<%=f.select :qbo_invoice_id, QboInvoice.all.pluck(:doc_number, :id).sort! {|x, y| y <=> x}, :selected => @selected_invoice, include_blank: true%>

<%= f.label "Estimate Count: "+@qbo_estimate_count.to_s %>
<%=f.select :qbo_estimate_id, QboEstimate.all.pluck(:doc_number, :id).sort! {|x, y| y <=> x}, :selected => @selected_estimate, include_blank: true%>

<% end %>

<%= link_to "Sync", qbo_sync_path %>