Sha256: b6aa6f4dfee746351a9096c9ebdb6935dedfb5570dfaad5e6886f163fc40c32f

Contents?: true

Size: 1.59 KB

Versions: 15

Compression:

Stored size: 1.59 KB

Contents

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

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

      fields :alt_shipping_cost, :created_date, :firmed, :fob, :handling_tax1_rate,
             :handling_tax2_rate, :last_modified_date, :linked_tracking_numbers,
             :memo, :ship_complete, :ship_date, :ship_is_residential, :shipping_cost,
             :shipping_tax1_rate, :shipping_tax2_rate, :source, :status, :sub_total,
             :total, :tracking_numbers, :tran_date, :tran_id, :order_status, :use_item_cost_as_transfer_cost

      record_refs :transfer_location, :shipping_tax_code, :subsidiary, :shipping_address,
                  :ship_method, :employee, :handling_tax_code,
                  :location, :custom_form, :department, :klass, :ship_address_list

      field :custom_field_list,   CustomFieldList
      field :item_list,           TransferOrderItemList

      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
        "Transaction"
      end

      def self.search_class_namespace
        'tranSales'
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
netsuite-0.8.10 lib/netsuite/records/transfer_order.rb
netsuite-0.8.9 lib/netsuite/records/transfer_order.rb
netsuite-0.8.8 lib/netsuite/records/transfer_order.rb
netsuite-0.8.7 lib/netsuite/records/transfer_order.rb
netsuite-0.8.6 lib/netsuite/records/transfer_order.rb
netsuite-0.8.5 lib/netsuite/records/transfer_order.rb
netsuite-0.8.4 lib/netsuite/records/transfer_order.rb
netsuite-0.8.3 lib/netsuite/records/transfer_order.rb
netsuite-0.8.2 lib/netsuite/records/transfer_order.rb
netsuite-0.8.1 lib/netsuite/records/transfer_order.rb
netsuite-0.8.0 lib/netsuite/records/transfer_order.rb
netsuite-0.7.9 lib/netsuite/records/transfer_order.rb
netsuite-0.7.8 lib/netsuite/records/transfer_order.rb
netsuite-0.7.7 lib/netsuite/records/transfer_order.rb
netsuite-0.7.6 lib/netsuite/records/transfer_order.rb