Update qbo_controller.rb

This commit is contained in:
2016-05-02 12:58:10 -04:00
parent f51fa5c7d0
commit 19f1ffa89c

View File

@@ -69,12 +69,12 @@ class QboController < ApplicationController
# #
def sync def sync
if Qbo.exists? if Qbo.exists?
Customer.update_all Customer.sync
QboItem.update_all QboItem.sync
QboEmployee.update_all QboEmployee.sync
QboEstimate.update_all QboEstimate.sync
QboInvoice.update_all QboInvoice.sync
QboPurchase.update_all QboPurchase.sync
# Record the last sync time # Record the last sync time
Qbo.update_time_stamp Qbo.update_time_stamp