Only pull QBO Service Items & Auto sync QBO Items

This commit is contained in:
2016-01-10 10:11:15 -05:00
parent 1c67328363
commit 8b78e113f9
3 changed files with 3 additions and 4 deletions

View File

@@ -19,7 +19,7 @@ class QboItem < ActiveRecord::Base
service = Quickbooks::Service::Item.new(:company_id => qbo.realmId, :access_token => Qbo.get_auth_token)
# Update the item table
service.all.each { |item|
service.find_by(:type, "Service").each { |item|
qbo_item = QboItem.find_or_create_by(id: item.id)
qbo_item.name = item.name
qbo_item.id = item.id