mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update index.html.erb
This commit is contained in:
@@ -12,44 +12,31 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1> Redmine Quickbooks</h1>
|
<h1> Redmine Quickbooks</h1>
|
||||||
<%= form_for @qbo do |f|%>
|
|
||||||
<div>
|
<div>
|
||||||
<%= f.label "Customer Count:"+@customer_count.to_s%>
|
<b>Customer Count:</b> <%= @customer_count.to_s%>
|
||||||
<br/>
|
|
||||||
<%= f.select :customer_id, Customer.all.pluck(:name, :id).sort, :selected => @selected_customer, include_blank: true %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= f.label "Item Count: "+@qbo_item_count.to_s %>
|
<b>Item Count:</b> <%= @qbo_item_count.to_s %>
|
||||||
<br/>
|
|
||||||
<%= f.select :qbo_item_id, QboItem.all.pluck(:name, :id).sort.reverse, :selected => @selected_item, include_blank: true %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<%= f.label "Employee Count: "+@qbo_employee_count.to_s %>
|
<b>Employee Count:</b> <%= @qbo_employee_count.to_s %>
|
||||||
<br/>
|
|
||||||
<%= f.select :qbo_employee_id, QboEmployee.all.pluck(:name, :id).sort, :selected => @selected_employee, include_blank: true %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<b>Invoice Count:</b> <%= @qbo_invoice_count.to_s %>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<div>
|
||||||
<%= f.label "Invoice Count: "+@qbo_invoice_count.to_s %>
|
<b>Estimate Count:</b> <%= @qbo_estimate_count.to_s %>
|
||||||
<br/>
|
</div>
|
||||||
<%=f.select :qbo_invoice_id, QboInvoice.all.pluck(:doc_number, :id).sort! {|x, y| y <=> x}, :selected => @selected_invoice, include_blank: true%>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<%= f.label "Estimate Count: "+@qbo_estimate_count.to_s %>
|
|
||||||
<br/>
|
|
||||||
<%=f.select :qbo_estimate_id, QboEstimate.all.pluck(:doc_number, :id).sort! {|x, y| y <=> x}, :selected => @selected_estimate, include_blank: true%>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
Last sync: <%= Qbo.first.last_sync %>
|
||||||
<%= link_to "Sync", qbo_sync_path %>
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user