Sha256: 29c362d0cde26cf420f2bfbff782fd0144c878ef32ef55fe55643069c25c5f2f

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

module NetSuite
  module Records
    class ItemReceipt
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Support::Actions
      include Namespaces::TranPurch

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

      fields :created_date, :currency_name, :exchange_rate, :landed_cost_per_line,
             :last_modified_date, :memo, :tran_date, :tran_id


      record_refs :created_from, :currency, :custom_form, :entity, :landed_cost_method,
                  :partner, :posting_period, :subsidiary


      # TODO
      # :expense_list
      # :landed_costs_list

      field :item_list, ItemReceiptItemList
      field :custom_field_list, CustomFieldList

      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

      def self.search_class_name
        "Transaction"
      end

      def self.search_class_namespace
        'tranSales'
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/item_receipt.rb
netsuite-0.9.2 lib/netsuite/records/item_receipt.rb
netsuite-0.9.1 lib/netsuite/records/item_receipt.rb
netsuite-0.9.0 lib/netsuite/records/item_receipt.rb
netsuite-0.8.12 lib/netsuite/records/item_receipt.rb
netsuite-0.8.11 lib/netsuite/records/item_receipt.rb