lib/netsuite/records/invoice.rb in netsuite-0.4.4 vs lib/netsuite/records/invoice.rb in netsuite-0.4.5
- old
+ new
@@ -5,10 +5,12 @@
include Support::RecordRefs
include Support::Records
include Support::Actions
include Namespaces::TranSales
+ # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/invoice.html?mode=package
+
actions :get, :get_list, :initialize, :add, :update, :delete, :upsert, :search
fields :balance, :bill_address,
:billing_schedule, :contrib_pct, :created_date, :currency_name, :custom_field_list,
:deferred_revenue, :discount_amount, :discount_date, :discount_item, :discount_rate,
@@ -38,10 +40,10 @@
read_only_fields :sub_total, :discount_total, :total, :recognized_revenue, :amount_remaining, :amount_paid,
:alt_shipping_cost, :gift_cert_applied, :tax_rate, :handling_cost, :alt_handling_cost
record_refs :account, :bill_address_list, :custom_form, :department, :entity, :klass, :partner,
:posting_period, :ship_address_list, :terms, :location, :sales_rep, :tax_item, :created_from,
- :ship_method, :lead_source, :promo_code, :subsidiary
+ :ship_method, :lead_source, :promo_code, :subsidiary, :currency
attr_reader :internal_id
attr_accessor :external_id
def initialize(attributes = {})