Skip to content

Commit

Permalink
Add department and location to CashRefundItem/record_refs (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
seejohnplay authored Oct 12, 2023
1 parent b87d530 commit f853c94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/netsuite/records/cash_refund_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion spec/netsuite/records/cash_refund_item_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f853c94

Please sign in to comment.