Sha256: f84d8bde66654c040f067eb92ac4b7b85537fa84a176cbd6baea8f7d7faee919

Contents?: true

Size: 1.62 KB

Versions: 10

Compression:

Stored size: 1.62 KB

Contents

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

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

      fields :created_date,  :un_applied, :last_modified_date,
             :auto_apply,    :applied,    :transaction_number,
             :tran_id,       :total,      :user_total,
             :currency_name, :tran_date,  :exchange_rate,
             :memo

      field :custom_form,        RecordRef
      field :account,            RecordRef
      field :bill_address_list,  RecordRef
      field :created_from,       RecordRef
      field :entity,             RecordRef
      field :currency,           RecordRef
      field :posting_period,     RecordRef
      field :department,         RecordRef
      field :klass,              RecordRef
      field :location,           RecordRef
      field :subsidiary,         RecordRef
      field :billing_address,    Address
      field :expense_list,       VendorCreditExpenseList
      field :item_list,          VendorCreditItemList
      field :apply_list,         VendorCreditApplyList
      field :custom_field_list,  CustomFieldList

      attr_reader :internal_id

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_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

10 entries across 10 versions & 1 rubygems

Version Path
netsuite-0.8.3 lib/netsuite/records/vendor_credit.rb
netsuite-0.8.2 lib/netsuite/records/vendor_credit.rb
netsuite-0.8.1 lib/netsuite/records/vendor_credit.rb
netsuite-0.8.0 lib/netsuite/records/vendor_credit.rb
netsuite-0.7.9 lib/netsuite/records/vendor_credit.rb
netsuite-0.7.8 lib/netsuite/records/vendor_credit.rb
netsuite-0.7.7 lib/netsuite/records/vendor_credit.rb
netsuite-0.7.6 lib/netsuite/records/vendor_credit.rb
netsuite-0.7.5 lib/netsuite/records/vendor_credit.rb
netsuite-0.7.4 lib/netsuite/records/vendor_credit.rb