mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Fixed QBO#Index
This commit is contained in:
@@ -16,7 +16,7 @@ class QboController < ApplicationController
|
||||
#
|
||||
def index
|
||||
@qbo = Qbo.first
|
||||
@qbo_customer_count = QboCustomers.count
|
||||
@qbo_customer_count = QboCustomer.count
|
||||
@qbo_item_count = QboItem.count
|
||||
@qbo_employee_count = QboEmployee.count
|
||||
@selected_customer
|
||||
@@ -66,7 +66,7 @@ class QboController < ApplicationController
|
||||
#
|
||||
def sync
|
||||
if Qbo.exists? then
|
||||
QboCustomers.update_all
|
||||
QboCustomer.update_all
|
||||
QboItem.update_all
|
||||
QboEmployee.update_all
|
||||
QboEstimate.update_all
|
||||
|
||||
@@ -16,7 +16,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
<div>
|
||||
<%= f.label "Customer Count:"+@qbo_customer_count.to_s%>
|
||||
<br/>
|
||||
<%= f.select :qbo_customer_id, QboCustomers.all.pluck(:name, :id), :selected => @selected_customer, include_blank: true %>
|
||||
<%= f.select :qbo_customer_id, QboCustomer.all.pluck(:name, :id), :selected => @selected_customer, include_blank: true %>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
Reference in New Issue
Block a user