IBM Support

JR53107: Incorrect discount given for order running total for customized promotions.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The discount on the order is calculated incorrectly when
    OrderCalculate is called a second time through promotion engine
    evaluation.
    
    There is a cache in OrderRunningTotal that is normally cleared
    after the promotion engine evaluation, however, if a custom
    command that re-invokes the logic with some order updates, the
    cached result is returned instead of recalculating the new
    subtotal. This results in promotion applies to the already
    discounted subtotal to give additional unintended discount.
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce V7 users who have custom commands that calls
    the OrderCalculate command a second time within promotion engine
     evaluation cycle.
    
    PROBLEM ABSTRACT:
    Incorrect discount given for order running total for customized
    promotions.
    
    BUSINESS IMPACT:
    Shoppers are given incorrect promotion discounts on the order
    subtotal
    
    RECOMMENDATION:
    

Problem conclusion

  • Added cache clearing to OrderRunningTotal class, so that after
    an evaluation is done, cache is removed. Any subsequent calls to
     OrderRunningTotal would need to recalculate the order again
    since order items at this time could be different.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR53107

  • Reported component name

    WC BUS EDITION

  • Reported component ID

    5724I3800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-04-14

  • Closed date

    2015-06-19

  • Last modified date

    2015-06-19

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC BUS EDITION

  • Fixed component ID

    5724I3800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYSYL","label":"WebSphere Commerce Enterprise"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB31","label":"WCE Watson Marketing and Commerce"}}]

Document Information

Modified date:
11 December 2021