Sha256: 74400d2b57bc7eb8962863d61a604d157b6dbf81b18158fcd95a4e2a8d52c630

Contents?: true

Size: 765 Bytes

Versions: 6

Compression:

Stored size: 765 Bytes

Contents

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

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

      fields :allow_non_gl_changes, :end_date, :is_adjust, :is_quarter, :is_year, :period_name, :start_date, :closed

      record_refs :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

6 entries across 6 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/accounting_period.rb
netsuite-0.9.2 lib/netsuite/records/accounting_period.rb
netsuite-0.9.1 lib/netsuite/records/accounting_period.rb
netsuite-0.9.0 lib/netsuite/records/accounting_period.rb
netsuite-0.8.12 lib/netsuite/records/accounting_period.rb
netsuite-0.8.11 lib/netsuite/records/accounting_period.rb