Skip to content

Commit

Permalink
Added documentation for auxReference
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinSuarez committed Jan 11, 2018
1 parent bf93d9f commit e39f019
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,25 @@ deposit.payment = 20
deposit.add
```


## Initialize Fulfillment from Sales Order with Multi Ship Enabled

```ruby
# You can initialize a fulfillment by specifying an auxReference to retrieve a specific Ship Group
# This will return a fulfillment with line items linked to said ship group which is associated to
# a specific location.
aux_reference = {
aux_reference: {
internal_id: 1, # Ship Group IDs can be found on Line Items on the Sales Order
type: "shippingGroup"
}
}


fulfillment = NetSuite::Records::ItemFulfillment.initialize(@sales_order, aux_reference)
```


## Non-standard Operations

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

# About SuiteSync

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

0 comments on commit e39f019

Please sign in to comment.