[ 
https://issues.apache.org/jira/browse/OFBIZ-6631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Becker updated OFBIZ-6631:
---------------------------------
    Attachment: OFBIZ-6631-Optimized-RemoveCartItem.patch

> Optimize ShoppingCart.removeCartItem (skip price calc and inventory check)
> --------------------------------------------------------------------------
>
>                 Key: OFBIZ-6631
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6631
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: Upcoming Branch
>            Reporter: Martin Becker
>            Priority: Minor
>         Attachments: OFBIZ-6631-Optimized-RemoveCartItem.patch
>
>
> Based on the standard parameter completion from the overloaded API of 
> ShoppingCartItem.setQuantity, the use of the ShoppingCart.removeCartItem 
> method leads to an unnecessary price calculation and inventory check for the 
> item being removed.
> By using the setQuantity method with full parameter list in this case, this 
> can be avoided.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to