Skip to content

Commit

Permalink
Fix fields definition for Transfer Orders (#582)
Browse files Browse the repository at this point in the history
* fix shipping_address defenition

* fix klass defenition
  • Loading branch information
fabiensebban committed Jul 10, 2023
1 parent 8c64ad2 commit c314af6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/netsuite/records/transfer_order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ class TransferOrder
:shipping_tax1_rate, :shipping_tax2_rate, :source, :status, :sub_total,
:total, :tracking_numbers, :tran_date, :tran_id, :order_status, :use_item_cost_as_transfer_cost

record_refs :transfer_location, :shipping_tax_code, :subsidiary, :shipping_address,
record_refs :transfer_location, :shipping_tax_code, :subsidiary,
:ship_method, :employee, :handling_tax_code,
:location, :custom_form, :department, :klass, :ship_address_list

field :shipping_address, Address
field :custom_field_list, CustomFieldList
field :item_list, TransferOrderItemList

Expand Down
4 changes: 2 additions & 2 deletions lib/netsuite/records/transfer_order_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TransferOrderItem
include Support::Records
include Namespaces::TranInvt

fields :amount, :average_cost, :klass, :commit_inventory, :description,
fields :amount, :average_cost, :commit_inventory, :description,
:expected_receipt_date, :expected_ship_date, :inventory_detail, :is_closed, :last_purchase_price,
:line, :order_priority, :quantity, :quantity_available,
:quantity_back_ordered, :quantity_committed, :quantity_fulfilled,
Expand All @@ -16,7 +16,7 @@ class TransferOrderItem
field :options, CustomFieldList
field :custom_field_list, CustomFieldList

record_refs :department, :item, :units
record_refs :department, :item, :units, :klass

def initialize(attributes_or_record = {})
case attributes_or_record
Expand Down

0 comments on commit c314af6

Please sign in to comment.