Sha256: f9abdc41e4aa05ee0b4489267e2467f9b1e51aff0f166dcf71e39fee7cb18501

Contents?: true

Size: 1 KB

Versions: 10

Compression:

Stored size: 1 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

      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

10 entries across 10 versions & 1 rubygems

Version Path
netsuite-0.8.9 lib/netsuite/records/inventory_number.rb
netsuite-0.8.8 lib/netsuite/records/inventory_number.rb
netsuite-0.8.7 lib/netsuite/records/inventory_number.rb
netsuite-0.8.6 lib/netsuite/records/inventory_number.rb
netsuite-0.8.5 lib/netsuite/records/inventory_number.rb
netsuite-0.8.4 lib/netsuite/records/inventory_number.rb
netsuite-0.8.3 lib/netsuite/records/inventory_number.rb
netsuite-0.8.2 lib/netsuite/records/inventory_number.rb
netsuite-0.8.1 lib/netsuite/records/inventory_number.rb
netsuite-0.8.0 lib/netsuite/records/inventory_number.rb