Sha256: 7958155bdb248f6e2b20f7fe1beb6b0e69b0cd11bfe6d0b851757133f1c9d3e1

Contents?: true

Size: 1.06 KB

Versions: 6

Compression:

Stored size: 1.06 KB

Contents

module NetSuite
  module Records
    class WorkOrderItem
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Namespaces::TranInvt

      fields :average_cost, :bom_quantity, :commit, :component_yield,
        :contribution, :create_po, :create_wo, :description, :inventory_detail,
        :last_purchase_price, :line, :order_priority, :percent_complete,
        :po_rate, :quantity, :quantity_available, :quantity_back_ordered,
        :quantity_committed, :quantity_on_hand, :serial_numbers

      field :custom_field_list, CustomFieldList
      field :options,           CustomFieldList

      record_refs :department, :item, :location, :po_vender, :units

      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/work_order_item.rb
netsuite-0.9.2 lib/netsuite/records/work_order_item.rb
netsuite-0.9.1 lib/netsuite/records/work_order_item.rb
netsuite-0.9.0 lib/netsuite/records/work_order_item.rb
netsuite-0.8.12 lib/netsuite/records/work_order_item.rb
netsuite-0.8.11 lib/netsuite/records/work_order_item.rb