Sha256: 2fe23e95f2f1f0880f4ea025c90bd14648534025b9af74be68971e6c45491099

Contents?: true

Size: 1.38 KB

Versions: 27

Compression:

Stored size: 1.38 KB

Contents

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

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

      fields :address, :balance, :bill_pay, :created_at, :credit_list, :currency_name, :exchange_rate, :last_modified_date,
          :memo, :print_voucher, :status, :to_ach, :to_be_printed, :total, :tran_date, :tran_id, :transaction_number

      field :apply_list,        VendorPaymentApplyList
      field :custom_field_list, CustomFieldList

      record_refs :account, :ap_acct, :currency, :custom_form, :department, :entity, :klass, :location, :posting_period,
                  :subsidiary, :void_journal

      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 to_record
        rec = super
        if rec["#{record_namespace}:customFieldList"]
          rec["#{record_namespace}:customFieldList!"] = rec.delete("#{record_namespace}:customFieldList")
        end
        rec
      end

    end
  end
end



Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
netsuite-0.6.6 lib/netsuite/records/vendor_payment.rb
netsuite-0.6.5 lib/netsuite/records/vendor_payment.rb
netsuite-0.6.4 lib/netsuite/records/vendor_payment.rb
netsuite-0.6.3 lib/netsuite/records/vendor_payment.rb
netsuite-0.6.2 lib/netsuite/records/vendor_payment.rb
netsuite-0.6.1 lib/netsuite/records/vendor_payment.rb
netsuite-0.6.0 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.9 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.8 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.7 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.6 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.5 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.4 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.3 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.2 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.1 lib/netsuite/records/vendor_payment.rb
netsuite-0.5.0 lib/netsuite/records/vendor_payment.rb
netsuite-0.4.9 lib/netsuite/records/vendor_payment.rb
netsuite-0.4.8 lib/netsuite/records/vendor_payment.rb
netsuite-0.4.7 lib/netsuite/records/vendor_payment.rb