mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo.rb
Added get_base convenience method
This commit is contained in:
@@ -29,6 +29,12 @@ class Qbo < ActiveRecord::Base
|
||||
c.persistent_secret = 'qb_secret'
|
||||
c.persistent_company_id = 'company_id'
|
||||
end
|
||||
|
||||
# Get a quickbooks base object for type
|
||||
# @params type of base
|
||||
def self.get_base(type = nil)
|
||||
Quickbooks::Base.new(first, type if type)
|
||||
end
|
||||
|
||||
# Get the QBO account
|
||||
def self.get_account
|
||||
|
||||
Reference in New Issue
Block a user