IBM Support

JR48658: CMVC 232773 - Incorrect quantity added to cart for some combinat of nominal quantity and quantity measure

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If we add data to CATENTSHIP for NOMINALQUANTITY and
    QUANTITYMULTIPLE values for a product, sometimes an incorrect
    number of items is added to the cart.
    
    For example:
    NOMINALQUANTITY = 2.95
    QUANTITYMULTIPLE = 2.95
    
    If we navigate to the catalog entry on the storefront and update
    the quantity to 3, then click "Add to Cart", then 4 items get
    added to the cart.
    This happens because of how the JRE is calculating the double in
    roundQuantityAmountNoConversion method e.g.:
    2.95*3=8.850000000000001
    

Local fix

Problem summary

  • USERS AFFECTED:
    WebSphere Commerce users who use NOMINALQUANTITY and
    QUANTITYMULTIPLE columns in CATENTSHIP table.
    
    PROBLEM ABSTRACT:
    Incorrect quantity added to cart for some combinations of
    nominal quantity and quantity measure
    
    BUSINESS IMPACT:
    End users may not be able to get the real desired quantity for
    shopping cart.
    
    RECOMMENDATION:
    

Problem conclusion

  • If NOMINALQUANTITY and QUANTITYMULTIPLE values are equal, the
    roundQuantityAmountNoConversion method is skipped. And if there
    is a very small fraction(less than one trillionth) in the
    requested quantity, e.g. 3.0000000000000004, then the fraction
    is considered as an error caused by double mis-computation
    instead of real intention of end user, so that the rounded
    quantity is 3 instead of 4.
    -------------------------------------------------------------
    The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
    http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR48658

  • 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

    2013-11-28

  • Closed date

    2014-01-21

  • Last modified date

    2014-01-21

  • 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"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
21 January 2014