Skip to content

Commit e39f019

Browse files
committed
Added documentation for auxReference
1 parent bf93d9f commit e39f019

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,25 @@ deposit.payment = 20
547547
deposit.add
548548
```
549549

550+
551+
## Initialize Fulfillment from Sales Order with Multi Ship Enabled
552+
553+
```ruby
554+
# You can initialize a fulfillment by specifying an auxReference to retrieve a specific Ship Group
555+
# This will return a fulfillment with line items linked to said ship group which is associated to
556+
# a specific location.
557+
aux_reference = {
558+
aux_reference: {
559+
internal_id: 1, # Ship Group IDs can be found on Line Items on the Sales Order
560+
type: "shippingGroup"
561+
}
562+
}
563+
564+
565+
fulfillment = NetSuite::Records::ItemFulfillment.initialize(@sales_order, aux_reference)
566+
```
567+
568+
550569
## Non-standard Operations
551570

552571
```ruby
@@ -570,4 +589,4 @@ states.to_array.first[:get_all_response][:get_all_result][:record_list][:record]
570589

571590
# About SuiteSync
572591

573-
[SuiteSync, the Stripe-NetSuite integration](http://suitesync.io) uses this gem and funds the majority of it's development and maintenance.
592+
[SuiteSync, the Stripe-NetSuite integration](http://suitesync.io) uses this gem and funds the majority of it's development and maintenance.

0 commit comments

Comments
 (0)