diff --git a/app/views/qbo/index.html.erb b/app/views/qbo/index.html.erb index d100894..0506045 100644 --- a/app/views/qbo/index.html.erb +++ b/app/views/qbo/index.html.erb @@ -12,44 +12,31 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI

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%> -

+
+ Customer Count: <%= @customer_count.to_s%> +
- <% end %>
+ +
+ Item Count: <%= @qbo_item_count.to_s %> +
+
- <%= link_to "Sync", qbo_sync_path %> + +
+ Employee Count: <%= @qbo_employee_count.to_s %> +
+ +
+ Invoice Count: <%= @qbo_invoice_count.to_s %> +
+ +
+ Estimate Count: <%= @qbo_estimate_count.to_s %> +
+ +
+ Last sync: <%= Qbo.first.last_sync %>