Sha256: 1ceca9388350b6dde34a312a079a3c4b1dd13870703039f155d1fe3eeb3fed1d

Contents?: true

Size: 910 Bytes

Versions: 24

Compression:

Stored size: 910 Bytes

Contents

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

      actions :get, :add, :delete

      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

      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

24 entries across 24 versions & 1 rubygems

Version Path
netsuite-0.1.0 lib/netsuite/records/account.rb
netsuite-0.0.50 lib/netsuite/records/account.rb
netsuite-0.0.49 lib/netsuite/records/account.rb
netsuite-0.0.48 lib/netsuite/records/account.rb
netsuite-0.0.47 lib/netsuite/records/account.rb
netsuite-0.0.45 lib/netsuite/records/account.rb
netsuite-0.0.44 lib/netsuite/records/account.rb
netsuite-0.0.43 lib/netsuite/records/account.rb
netsuite-0.0.42 lib/netsuite/records/account.rb
netsuite-0.0.41 lib/netsuite/records/account.rb
netsuite-0.0.40 lib/netsuite/records/account.rb
netsuite-0.0.39 lib/netsuite/records/account.rb
netsuite-0.0.38 lib/netsuite/records/account.rb
netsuite-0.0.37 lib/netsuite/records/account.rb
netsuite-0.0.36 lib/netsuite/records/account.rb
netsuite-0.0.35 lib/netsuite/records/account.rb
netsuite-0.0.34 lib/netsuite/records/account.rb
netsuite-0.0.33 lib/netsuite/records/account.rb
netsuite-0.0.32 lib/netsuite/records/account.rb
netsuite-0.0.31 lib/netsuite/records/account.rb