Skip to content

Commit

Permalink
Add support to Inventory Status field (#596)
Browse files Browse the repository at this point in the history
* Add support to Inventory Status field

* Add inventory status ref to spec
  • Loading branch information
hmanongsong committed Oct 14, 2023
1 parent f853c94 commit 3105d42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/netsuite/records/inventory_assignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class InventoryAssignment
include Support::Fields
include Namespaces::PlatformCommon

fields :date_time, :quantity, :quantity_available, :expiration_date,
fields :date_time, :quantity, :quantity_available, :expiration_date,
:receipt_inventory_number

record_refs :bin_number, :issue_inventory_number, :to_bin_number
record_refs :bin_number, :issue_inventory_number, :to_bin_number, :inventory_status

attr_reader :internal_id
attr_accessor :external_id
Expand Down
2 changes: 1 addition & 1 deletion spec/netsuite/records/inventory_assignment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

it 'has all the right record refs' do
[
:bin_number, :issue_inventory_number, :to_bin_number
:bin_number, :issue_inventory_number, :to_bin_number, :inventory_status
].each do |record_ref|
expect(item).to have_record_ref(record_ref)
end
Expand Down

0 comments on commit 3105d42

Please sign in to comment.