mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update qbo_controller.rb
This commit is contained in:
@@ -20,7 +20,7 @@ class QboController < ApplicationController
|
|||||||
#
|
#
|
||||||
def index
|
def index
|
||||||
@qbo = Qbo.first
|
@qbo = Qbo.first
|
||||||
@qbo_customer_count = QboCustomer.count
|
@qbo_customer_count = Customer.count
|
||||||
@qbo_item_count = QboItem.count
|
@qbo_item_count = QboItem.count
|
||||||
@qbo_employee_count = QboEmployee.count
|
@qbo_employee_count = QboEmployee.count
|
||||||
@qbo_invoice_count = QboInvoice.count
|
@qbo_invoice_count = QboInvoice.count
|
||||||
@@ -69,7 +69,7 @@ class QboController < ApplicationController
|
|||||||
#
|
#
|
||||||
def sync
|
def sync
|
||||||
if Qbo.exists?
|
if Qbo.exists?
|
||||||
QboCustomer.update_all
|
Customer.update_all
|
||||||
QboItem.update_all
|
QboItem.update_all
|
||||||
QboEmployee.update_all
|
QboEmployee.update_all
|
||||||
QboEstimate.update_all
|
QboEstimate.update_all
|
||||||
|
|||||||
Reference in New Issue
Block a user