Used realm_id not comany_id

This commit is contained in:
2023-12-30 19:13:08 -05:00
parent 7a6b6882d2
commit c3513427de

View File

@@ -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