Sha256: 3746764d98689ebcfb8a134c8def9b2de89b56855e8caca2385e0a187259a463

Contents?: true

Size: 1.21 KB

Versions: 14

Compression:

Stored size: 1.21 KB

Contents

require 'spec_helper'

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

# <element name="options" type="platformCore:CustomFieldList" minOccurs="0"/>
# <element name="inventoryDetail" type="platformCommon:InventoryDetail" minOccurs="0"/>
# <element name="customFieldList" type="platformCore:CustomFieldList" minOccurs="0"/>

  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|
      item.should 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|
      item.should have_record_ref(record_ref)
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
netsuite-0.0.39 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.38 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.37 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.36 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.35 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.34 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.33 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.32 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.31 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.30 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.29 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.28 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.27 spec/netsuite/records/credit_memo_item_spec.rb
netsuite-0.0.26 spec/netsuite/records/credit_memo_item_spec.rb