You are here:
MultiSiteOrderUtilities
Enable multi-site ordering. Using multi-site ordering, one order can include multiple shipping sites.
Multisite ordering relies on account hierarchies. The system displays child accounts to which orders can be shipped. There is no limit to adding multiple orders to a single account in a multi-site order. For each site, a new order is created on the child account. You can modify the orders using the Multi Site Order button.
Multi-site ordering groups multiple orders across multiple accounts. You cannot add an existing order to a multi-site order. Accounts must be related to one another to create a multi-site order.
Type
Strongly typed
Triggered When
Clicking the Multi Site Order button triggers the MultiSiteOrderUtilities interface.
Called In
The MultiSiteOrderUtilities interface is called in MultiSiteOrder.cls.
Signature
Access |
Signature |
|---|---|
public |
|
public |
|
Default Implementation
None. The default behavior is in the class that calls it, MultiSiteOrder.cls. This interface is called but does nothing. You can implement replacement behavior for multi-site orders here.
Multi-site ordering is a series of functions. If any of the functions returns
null, the default behavior executes.
Function |
Description |
Return |
|---|---|---|
|
If getRelatedAccounts returns null, get the default related Accounts. |
The list of accounts that are associated with this account |
|
Get all of the related orders found for this order. |
List of related orders |
|
Add a new order related to OrderID to the database. The order can be a child order or part of a group of orders. |
The new list of related orders with the new order included |
Other Implementations
None
Input Parameters
accountId
Type: Id
The account ID, in the function:
List<Account> getRelatedAccounts(String acctId);
OrderId
Type: Id
The order ID from which to get related orders, in the function:
List<Order> getRelatedOrders(String orderId);
Output Parameters
orderId
Type: Id
The order ID to which to relate the new order, in the function:
List<Order> addRelatedOrder(String orderId, String name, String acctId);
name
Type: String
The human-friendly name of this order in the function:
List<Order> addRelatedOrder(String orderId, String name, String acctId);
accountId
Type: Id
The account to which to add the order, in the function:
List<Order> addRelatedOrder(String orderId, String name, String acctId);
Sample Implementation
None

