IBM Support

Cancelling orderline and adding again creates FUTURE_AUTH record

Troubleshooting


Problem

Attempts to cancel orderline and adding again creates FUTURE_AUTH record for the order in IBM Sterling Order Management.

Symptom

Steps to reproduce:

  1. Create an Order with a credit card auth of $100, with a single item - Item1


  2. Replace the Item1 by a call of ChangeOrder to cancel Item1 and create a new line with Item2.
    Item1 is replaced with Item2 (with same value as that of Item1)

    <Order DocumentType="0001" EnterpriseCode="DEFAULT"
       OrderNo="Y100004304">
       <OrderDates>
           <OrderDate ActualDate="2016-02-25T16:12:56-08:00" DateTypeId="ActualAutoCancelDate"/>
           <OrderDate ActualDate="2016-02-15T16:14:47-08:00" DateTypeId="OrderPlacedDate"/>
       </OrderDates>
       <OrderLines>
           <OrderLine Action="CANCEL" CancelledQty="0.00"
              NewPrimeLineNo="2" OrderedQty="0.00"
               OriginalOrderedQty="1" PrimeLineNo="1" SubLineNo="1">
           </OrderLine>
           <OrderLine Action="CREATE" CancelledQty="0.00"
               InvoicedQuantity="0"
               IsFirmPredefinedNode="N" NewPrimeLineNo="2" OrderedQty="1"
               OriginalOrderedQty="1" PrimeLineNo="2"
               Status="Created" SubLineNo="1" ToSplitQty="1">
               <Item ItemID="Item2" ItemShortDesc="" ProductClass="" UnitOfMeasure="EACH"/>
               <LinePriceInfo ListPrice="49.99" RetailPrice="0.00" UnitPrice="49.99"/>
           </OrderLine>
      </OrderLines>
    </Order>


    At this point, a FUTURE_AUTH record is recorded in the charge transaction table though the order is not scheduled. The future authorization (auth) being created even if cancellation and addition occurs in the same transaction boundary with no change in order total.

Cause

The product opens the future auth based on the order line status quantity change and not on the order total when changeOrder is called.

Resolving The Problem

When there is a addition in book amount, that is an increase in order total, the product would acquire the delta additional authorization and would create a future auth record matching the order total.

Similarly, when there is a order total decrease, the product would reverse the existing auth amount based on the auth reversal strategy.

In this case, since an existing line is being cancelled and a new line is being created, a future auth record matching the order total. Though the order total does not change, internally there is a call to cancel and then add a new line. This is the reason why the future auth is created. This is a dummy auth that will be present until the order is scheduled.

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.3;9.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21978959