Skip to content

Commit

Permalink
Add department, klass and location EstimateItem/record_refs (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdufresne authored Feb 25, 2023
1 parent 2fdb783 commit 37787c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/netsuite/records/estimate_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ class EstimateItem

field :custom_field_list, CustomFieldList

record_refs :item, :job, :price, :tax_code, :units
record_refs :department,
:item,
:job,
:klass,
:location,
:price,
:tax_code,
:units

def initialize(attributes_or_record = {})
case attributes_or_record
Expand Down
9 changes: 8 additions & 1 deletion spec/netsuite/records/estimate_item_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@

it 'has all the right record refs' do
[
:item, :job, :price, :tax_code, :units
:department,
:item,
:job,
:klass,
:location,
:price,
:tax_code,
:units,
].each do |record_ref|
expect(item).to have_record_ref(record_ref)
end
Expand Down

0 comments on commit 37787c3

Please sign in to comment.