Sha256: 4c064f307132dd70544467e6aa64b191e20be044fe6cff1a129a3ca6b9b714de

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

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

      actions :get, :search, :update

      fields :expiration_date, :inventory_number, :isonhand, :memo, :status, :units, :location,
      :quantityavailable, :quantityintransit, :quantityonhand, :quantityonorder

      field :locations_list, InventoryNumberLocationsList
      field :custom_field_list, CustomFieldList

      record_refs :item

      attr_reader :internal_id
      attr_accessor :external_id
      attr_accessor :search_joins

      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

      def self.search_class_name
        "InventoryNumber"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
netsuite-0.8.10 lib/netsuite/records/inventory_number.rb