mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Fixed returned variable handling
This commit is contained in:
@@ -27,9 +27,9 @@ class AddTxnDates < ActiveRecord::Migration[5.1]
|
||||
say "Sync Invoices"
|
||||
|
||||
qbo = Qbo.first
|
||||
qbo.perform_authenticated_request do |access_token|
|
||||
invoices = qbo.perform_authenticated_request do |access_token|
|
||||
service = Quickbooks::Service::Invoice.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||
invoices = service.all
|
||||
service.all
|
||||
end
|
||||
|
||||
return unless invoices
|
||||
|
||||
Reference in New Issue
Block a user