Sha256: 1f8538f81c1c2a328fcecccca6f79389ab9fcbe148a11d92d44db43ef11b9831

Contents?: true

Size: 1.2 KB

Versions: 24

Compression:

Stored size: 1.2 KB

Contents

module NetSuite
  module Records
    class CreditMemoItem
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Namespaces::TranCust

      fields :amount, :bin_numbers, :cost_estimate, :cost_estimate_type, :defer_rev_rec, :description, :gift_cert_from,
        :gift_cert_message, :gift_cert_number, :gift_cert_recipient_email, :gift_cert_recipient_name, :gross_amt, :is_taxable,
        :line, :order_line, :quantity, :rate, :rev_rec_end_date, :rev_rec_start_date, :rev_rec_term_in_months, :serial_numbers,
        :tax1_amt, :tax_rate1, :tax_rate2, :vsoe_allocation, :vsoe_amount, :vsoe_deferral, :vsoe_delivered,
        :vsoe_permit_discount, :vsoe_price

      field :custom_field_list, CustomFieldList

      record_refs :department, :item, :job, :klass, :location, :price, :rev_rec_schedule, :tax_code, :units

      def initialize(attributes = {})
        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

24 entries across 24 versions & 1 rubygems

Version Path
netsuite-0.3.3 lib/netsuite/records/credit_memo_item.rb
netsuite-0.3.2 lib/netsuite/records/credit_memo_item.rb
netsuite-0.3.1 lib/netsuite/records/credit_memo_item.rb
netsuite-0.3.0 lib/netsuite/records/credit_memo_item.rb
netsuite-0.2.6 lib/netsuite/records/credit_memo_item.rb
netsuite-0.2.5 lib/netsuite/records/credit_memo_item.rb
netsuite-0.2.4 lib/netsuite/records/credit_memo_item.rb
netsuite-0.2.3 lib/netsuite/records/credit_memo_item.rb
netsuite-0.2.2 lib/netsuite/records/credit_memo_item.rb
netsuite-0.2.1 lib/netsuite/records/credit_memo_item.rb
netsuite-0.2.0 lib/netsuite/records/credit_memo_item.rb
netsuite-0.1.0 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.50 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.49 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.48 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.47 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.45 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.44 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.43 lib/netsuite/records/credit_memo_item.rb
netsuite-0.0.42 lib/netsuite/records/credit_memo_item.rb