mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Added sync functionality to Item and Employee
This commit is contained in:
@@ -16,6 +16,8 @@ class QboController < ApplicationController
|
||||
#
|
||||
def index
|
||||
@qbo_customer_count = QboCustomers.count
|
||||
@qbo_item_count = QboItem.count
|
||||
@qbo_employee_count = QboEmployee.count
|
||||
end
|
||||
|
||||
#
|
||||
@@ -61,6 +63,8 @@ class QboController < ApplicationController
|
||||
def sync
|
||||
if Qbo.exists? then
|
||||
QboCustomers.update_all
|
||||
QboItem.update_all
|
||||
QboEmployee.update_all
|
||||
end
|
||||
|
||||
redirect_to qbo_path(:redmine_qbo), :flash => { :notice => "Successfully synced to Quickbooks" }
|
||||
|
||||
Reference in New Issue
Block a user