lib/netsuite/records/invoice.rb in netsuite-0.0.17 vs lib/netsuite/records/invoice.rb in netsuite-0.0.18
- old
+ new
@@ -13,11 +13,11 @@
:exclude_commission, :exp_cost_disc_amount, :exp_cost_disc_print, :exp_cost_disc_rate, :exp_cost_disc_tax_1_amt,
:exp_cost_disc_taxable, :exp_cost_discount, :exp_cost_list, :exp_cost_tax_code, :exp_cost_tax_rate_1,
:exp_cost_tax_rate_2, :fax, :fob, :gift_cert_applied, :gift_cert_redemption_list, :handling_cost, :handling_tax_1_rate,
:handling_tax_2_rate, :handling_tax_code, :is_taxable, :item_cost_disc_amount, :item_cost_disc_print,
:item_cost_disc_rate, :item_cost_disc_tax_1_amt, :item_cost_disc_taxable, :item_cost_discount, :item_cost_list,
- :item_cost_tax_code, :item_cost_tax_rate_1, :item_cost_tax_rate_2, :job, :last_modified_date,
+ :item_cost_tax_code, :item_cost_tax_rate_1, :item_cost_tax_rate_2, :item_list, :job, :last_modified_date,
:lead_source, :linked_tracking_numbers, :location, :memo, :message, :message_sel, :on_credit_hold, :opportunity,
:other_ref_name, :partner, :partners_list, :promo_code, :rev_rec_end_date,
:rev_rec_on_rev_commitment, :rev_rec_schedule, :rev_rec_start_date, :revenue_status, :sales_effective_date,
:sales_group, :sales_rep, :sales_team_list, :ship_address, :ship_date, :ship_group_list,
:ship_method, :shipping_cost, :shipping_tax_1_rate, :shipping_tax_2_rate, :shipping_tax_code, :source, :start_date,
@@ -56,9 +56,13 @@
attributes[:transaction_ship_address] ||= ShipAddress.new
end
def item_list
attributes[:item_list] ||= InvoiceItemList.new
+ end
+
+ def item_list=(attrs)
+ attributes[:item_list] = InvoiceItemList.new(attrs)
end
def custom_field_list
attributes[:custom_field_list] ||= CustomFieldList.new
end