Recalculate Order Totals with Your Own Task Type

Recalculate the order total during fulfillment when you use your own task type.

This feature is particularly helpful when you sell a commodity that frequently varies in price after you submit a sales order to fulfillment and you need to recalculate the total so it reflects the latest price, such as corn, coffee, gasoline, and so on:

  • Modify the item's price after you schedule but before you ship the item.
  • Capture shipping charges after you ship but before you invoice the sales order.
  • Reprice your sales order when you ship or after you ship.

Example

Assume you need to reprice your sales order after you ship:

  1. You create a sales order that has standard items and configured items, then submit it.
  2. You use Oracle Shipping to ship the item. Shipping ships the item and captures the shipment cost during ship confirm.
  3. You use your own fulfillment task to convert the shipment cost into shipping charges, then send the charges in the payload for that task's response to Order Management. The response also includes the shipment advice and a request to recalculate the order total.
  4. Order Management runs the Update Sales Order Totals scheduled process at the next scheduled interval according to the schedule that you specify when you set up this scheduled process.
  5. You open the sales order in the Order Management work area, then notice that the order total now includes shipment charges.

To get the example payload that you would use for your fulfillment task's response, go to Technical Reference for Order Management (Doc ID 2051639.1), then download the Payloads and Files attachment.

Try It

  1. Create your own task type and use it to send charges from an application that resides outside of Order Management to Order Management. For background, see Create Your Own Task Type.
  2. Set the RecomputeOrderTotalsFlag attribute in the response that you send to your fulfillment system to:
    • True. Order Management will recalculate the order total.
    • False or empty. Order Management won’t recalculate.

Note that Order Management updates the total only after the Update Sales Order Totals scheduled process finishes successfully. For more, see Update Sales Order Totals.

For more, see these topics in SOAP Web Services for SCM:

  • Receive Fulfillment Task Response Service
  • Order Fulfillment Response Service