module NetSuite module Records class VendorCredit include Support::Fields include Support::RecordRefs include Support::Records include Support::Actions include Namespaces::TranPurch actions :get, :get_list, :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