Sha256: 9a371924c83cd12a7ce41313c50d7631ab8d36a5af7efad0037e1234e3b80ceb

Contents?: true

Size: 1015 Bytes

Versions: 3

Compression:

Stored size: 1015 Bytes

Contents

module NetSuite
  module Records
    class InventoryAdjustment
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranInvt

      actions :get, :add, :delete, :search, :update, :upsert, :upsert_list

      fields :created_date, :estimated_total_value, :last_modified_date, :tran_date, :tran_id, :memo

      field :inventory_list, InventoryAdjustmentInventoryList
      field :custom_field_list, CustomFieldList
      
      record_refs :account, :adj_location, :customer, :posting_period, :location, :department,
        :subsidiary, :custom_form

      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

3 entries across 3 versions & 1 rubygems

Version Path
netsuite-0.8.1 lib/netsuite/records/inventory_adjustment.rb
netsuite-0.8.0 lib/netsuite/records/inventory_adjustment.rb
netsuite-0.7.9 lib/netsuite/records/inventory_adjustment.rb