Class: QBFC::Item

Inherits:
List show all
Defined in:
lib/qbfc/item.rb

Constant Summary

Constants inherited from List

List::ID_NAME

Class Method Summary collapse

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?

Constructor Details

This class inherits a constructor from QBFC::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class QBFC::Base

Class Method Details

.add_special(sess, item_type) ⇒ Object

Adds a SpecialItem.

item_type should be a constent, for example:

Account.add_special(sess, QBFC_CONST::SitFinanceCharge)

See SDK docs for SpecialItemAdd for more details.



14
15
16
17
18
19
20
21
# File 'lib/qbfc/item.rb', line 14

def add_special(sess, item_type)
  rq = QBFC::Request.new(sess, "SpecialItemAdd")
  rq.special_item_type = item_type
  
  # Insofar as I never actually plan to use this method, just return
  # response.
  return rq.response
end