Sha256: f339ae448ee975b264c238a5e9c1cfe6a2c17b4b715e639e3a15b44d116eb0ec

Contents?: true

Size: 1.76 KB

Versions: 57

Compression:

Stored size: 1.76 KB

Contents

module NetSuite
  module Records
    class CashSaleItem
      include Support::Fields
      include Support::RecordRefs
      include Support::Records
      include Namespaces::TranSales

      fields :amount, :amount_ordered, :bin_numbers, :cost_estimate, :current_percent, :defer_rev_rec, :description, :exclude_from_rate_request,
        :gift_cert_from, :gift_cert_message, :gift_cert_number, :gift_cert_recipient_email, :gift_cert_recipient_name, :gross_amt, :is_taxable,
        :item_is_fulfilled, :license_code, :line, :order_line, :percent_complete, :quantity, :quantity_available, :quantity_fulfilled, :quantity_oh_hand,
        :quantity_ordered, :quantity_remaining, :rate, :rev_rec_end_date, :rev_rec_start_date, :serial_numbers, :ship_group, 
        :tax1_amt, :tax_rate1, :tax_rate2, :vsoe_allocation, :vsoe_amount, :vsoe_is_estimate, :vsoe_delivered, :vsoe_price

      #field :charges_list,         RecordRefList
      #field :cost_estimate_type,   ItemCostEstimateType
      #field :vsoe_deferral,        VsoeDeferral
      #field :vsoe_permit_discount, VsoePermitDiscount
      #field :vsoe_sop_group,       VsoeSopGroup
      field :custom_field_list,    CustomFieldList
      field :inventory_detail,     InventoryDetail
      field :options,              CustomFieldList

      record_refs :charge_type, :department, :item, :job, :klass, :location, :price, :rev_rec_schedule, :ship_address, :ship_method, :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

57 entries across 57 versions & 1 rubygems

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