mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update qbo.rb
Added get_base convenience method
This commit is contained in:
@@ -30,6 +30,12 @@ class Qbo < ActiveRecord::Base
|
|||||||
c.persistent_company_id = 'company_id'
|
c.persistent_company_id = 'company_id'
|
||||||
end
|
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
|
# Get the QBO account
|
||||||
def self.get_account
|
def self.get_account
|
||||||
first
|
first
|
||||||
|
|||||||
Reference in New Issue
Block a user