From 3105d42cd042ef9a8fef089b021964a3301c0efc Mon Sep 17 00:00:00 2001 From: Howell Manongsong <24601519+hmanongsong@users.noreply.github.com> Date: Sat, 14 Oct 2023 10:57:27 -0400 Subject: [PATCH] Add support to Inventory Status field (#596) * Add support to Inventory Status field * Add inventory status ref to spec --- lib/netsuite/records/inventory_assignment.rb | 4 ++-- spec/netsuite/records/inventory_assignment_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/netsuite/records/inventory_assignment.rb b/lib/netsuite/records/inventory_assignment.rb index f4e435be6..1fd33fc0c 100644 --- a/lib/netsuite/records/inventory_assignment.rb +++ b/lib/netsuite/records/inventory_assignment.rb @@ -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 diff --git a/spec/netsuite/records/inventory_assignment_spec.rb b/spec/netsuite/records/inventory_assignment_spec.rb index d78e95377..21e41a414 100644 --- a/spec/netsuite/records/inventory_assignment_spec.rb +++ b/spec/netsuite/records/inventory_assignment_spec.rb @@ -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