Class: QBFC::Account
- Includes:
- Modifiable
- Defined in:
- lib/qbfc/lists/account.rb
Constant Summary
Constants inherited from List
Class Method Summary collapse
-
.add_special(sess, account_type) ⇒ Object
Adds a SpecialAccount, per SDK documentation: “An account normally created automatically as needed within the QuickBooks UI, or in the SDK via the SpecialAccountAdd request.”.
Methods included from Modifiable
Methods inherited from List
#delete, #display, find_by_id, find_by_name, find_by_name_or_id, #full_name, #id
Methods inherited from Element
base_class_find, #custom, find, #initialize, is_base_class, is_base_class?, #new_record?, #save
Methods inherited from Base
create_query, #initialize, is_base_class?, #method_missing, #ole_methods, parse_find_args, qb_name, #qb_name, #respond_to_ole?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class QBFC::Base
Class Method Details
.add_special(sess, account_type) ⇒ Object
Adds a SpecialAccount, per SDK documentation: “An account normally created automatically as needed within the QuickBooks UI, or in the SDK via the SpecialAccountAdd request.”
account_type
should be a constent, for example:
Account.add_special(sess, QBFC_CONST::SatAccountsPayable)
See SDK docs for SpecialAccountAdd for more details.
16 17 18 19 20 21 |
# File 'lib/qbfc/lists/account.rb', line 16 def add_special(sess, account_type) rq = QBFC::Request.new(sess, "SpecialAccountAdd") rq.special_account_type = account_type new(sess, rq.response) end |