Sha256: e5befab42072475b957cf34306f69526d60c778e051f8c20caf44641551000e3

Contents?: true

Size: 1.33 KB

Versions: 60

Compression:

Stored size: 1.33 KB

Contents

require 'spec_helper'

describe NetSuite::Records::CreditMemoItem do
  let(:item) { NetSuite::Records::CreditMemoItem.new }

  it 'has all the right fields' do
    [
      :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
    ].each do |field|
      expect(item).to have_field(field)
    end
  end

  it 'has all the right record refs' do
    [
      :department, :item, :job, :klass, :location, :price, :rev_rec_schedule, :tax_code, :units
    ].each do |record_ref|
      expect(item).to have_record_ref(record_ref)
    end
  end

  describe '#options' do
    it 'can be set from attributes'
    it 'can be set from a CustomFieldList object'
  end

  describe '#inventory_detail' do
    it 'can be set from attributes'
    it 'can be set from an InventoryDetail object'
  end

  describe '#custom_field_list' do
    it 'can be set from attributes'
    it 'can be set from a CustomFieldList object'
  end

end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
netsuite-0.9.3 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.9.2 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.9.1 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.9.0 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.12 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.11 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.10 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.9 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.8 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.7 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.6 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.5 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.4 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.3 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.2 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.1 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.8.0 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.7.9 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.7.8 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.7.7 spec/netsuite/records/credit_memo_item_spec.rb