lib/netsuite/records/invoice.rb in netsuite-0.6.9 vs lib/netsuite/records/invoice.rb in netsuite-0.7.0

- old
+ new

@@ -34,19 +34,22 @@ field :transaction_bill_address, BillAddress field :transaction_ship_address, ShipAddress field :item_list, InvoiceItemList field :custom_field_list, CustomFieldList + field :shipping_address, Address + field :billing_address, Address read_only_fields :sub_total, :discount_total, :total, :recognized_revenue, :amount_remaining, :amount_paid, :alt_shipping_cost, :gift_cert_applied, :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, :currency attr_reader :internal_id attr_accessor :external_id + attr_accessor :search_joins def initialize(attributes = {}) @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id) @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id) initialize_from_attributes_hash(attributes)