Sha256: e12d11369bf99e7d77d9db37413f78cbcc268c68e47f3c34757949d630d1da4b

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

module NetSuite
  module Records
    class Account
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::ListAcct

      actions :get, :get_list, :add, :delete, :search, :upsert

      fields :acct_name, :acct_number, :acct_type, :cash_flow_rate, :cur_doc_num, :description, :eliminate, :exchange_rate,
        :general_rate, :include_children, :inventory, :is_inactive, :opening_balance, :revalue, :tran_date

      record_refs :billable_expenses_acct, :category1099misc, :currency, :deferral_acct, :department, :klass, :location, :parent

      field :subsidiary_list, RecordRefList

      attr_reader :internal_id
      attr_accessor :external_id

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
        initialize_from_attributes_hash(attributes)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
netsuite-0.5.6 lib/netsuite/records/account.rb
netsuite-0.5.5 lib/netsuite/records/account.rb
netsuite-0.5.4 lib/netsuite/records/account.rb
netsuite-0.5.3 lib/netsuite/records/account.rb
netsuite-0.5.2 lib/netsuite/records/account.rb