mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Used realm_id not comany_id
This commit is contained in:
@@ -24,15 +24,15 @@ class Qbo < ActiveRecord::Base
|
|||||||
# build the reqiested service
|
# build the reqiested service
|
||||||
case type
|
case type
|
||||||
when :time_activity
|
when :time_activity
|
||||||
base = Quickbooks::Service::TimeActivity.new(:company_id => qbo.company_id, :access_token => access_token)
|
base = Quickbooks::Service::TimeActivity.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||||
when :customer
|
when :customer
|
||||||
return Quickbooks::Service::Customer.new(:company_id => qbo.company_id, :access_token => access_token)
|
return Quickbooks::Service::Customer.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||||
when :invoice
|
when :invoice
|
||||||
base = Quickbooks::Service::Invoice.new(:company_id => qbo.company_id, :access_token => access_token)
|
base = Quickbooks::Service::Invoice.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||||
when :estimate
|
when :estimate
|
||||||
base = Quickbooks::Service::Estimate.new(:company_id => qbo.company_id, :access_token => access_token)
|
base = Quickbooks::Service::Estimate.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||||
when :employee
|
when :employee
|
||||||
base = Quickbooks::Service::Employee.new(:company_id => qbo.company_id, :access_token => access_token)
|
base = Quickbooks::Service::Employee.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||||
else
|
else
|
||||||
base = access_token
|
base = access_token
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user