From f853c94f0c3b9dd6b86b62cd0495de49a2f7b989 Mon Sep 17 00:00:00 2001 From: John Kasiewicz Date: Thu, 12 Oct 2023 11:41:50 -0400 Subject: [PATCH] Add department and location to CashRefundItem/record_refs (#593) --- lib/netsuite/records/cash_refund_item.rb | 6 +++++- spec/netsuite/records/cash_refund_item_spec.rb | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/netsuite/records/cash_refund_item.rb b/lib/netsuite/records/cash_refund_item.rb index 44b74315..2093d837 100644 --- a/lib/netsuite/records/cash_refund_item.rb +++ b/lib/netsuite/records/cash_refund_item.rb @@ -9,7 +9,11 @@ class CashRefundItem fields :amount, :gross_amt, :rate, :quantity, :is_taxable, :order_line, :line, :description field :custom_field_list, CustomFieldList - record_refs :item, :klass, :price + record_refs :department, + :item, + :klass, + :location, + :price def initialize(attributes_or_record = {}) initialize_from_attributes_hash(attributes_or_record) diff --git a/spec/netsuite/records/cash_refund_item_spec.rb b/spec/netsuite/records/cash_refund_item_spec.rb index b21d9db5..80cdc22d 100644 --- a/spec/netsuite/records/cash_refund_item_spec.rb +++ b/spec/netsuite/records/cash_refund_item_spec.rb @@ -13,7 +13,11 @@ it 'has all the right record refs' do [ - :item, :klass + :department, + :item, + :klass, + :location, + :price ].each do |record_ref| expect(item).to have_record_ref(record_ref) end