Skip to content

Commit afd7f1a

Browse files
committed
Added documentation for auxReference
1 parent 8390d31 commit afd7f1a

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
@@ -527,6 +527,25 @@ deposit.payment = 20
527527
deposit.add
528528
```
529529

530+
531+
## Initialize Fulfillment from Sales Order with Multi Ship Enabled
532+
533+
```ruby
534+
# You can initialize a fulfillment by specifying an auxReference to retrieve a specific Ship Group
535+
# This will return a fulfillment with line items linked to said ship group which is associated to
536+
# a specific location.
537+
aux_reference = {
538+
aux_reference: {
539+
internal_id: 1, # Ship Group IDs can be found on Line Items on the Sales Order
540+
type: "shippingGroup"
541+
}
542+
}
543+
544+
545+
fulfillment = NetSuite::Records::ItemFulfillment.initialize(@sales_order, aux_reference)
546+
```
547+
548+
530549
## Non-standard Operations
531550

532551
```ruby
@@ -550,4 +569,4 @@ states.to_array.first[:get_all_response][:get_all_result][:record_list][:record]
550569

551570
# About SuiteSync
552571

553-
[SuiteSync, the Stripe-NetSuite integration](http://suitesync.io) uses this gem and funds the majority of it's development and maintenance.
572+
[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)