You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2013/12/03 20:45:37 UTC

[jira] [Closed] (OFBIZ-5411) Checking with orderAdjustment.productPromoId rather than adjustment.productPromoId

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

Jacques Le Roux closed OFBIZ-5411.
----------------------------------

       Resolution: Fixed
    Fix Version/s: Release Branch 13.07
                   Release Branch 12.04
                   SVN trunk
                   Release Branch 11.04

Thanks Praveen,

Your patch is in
trunk r1547548  
R13.07 r1547549
R12.04 r1547550
R11.04 r1547551

We no longer support older releases. People can try to apply patches themselves...


> Checking with orderAdjustment.productPromoId rather than adjustment.productPromoId
> ----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-5411
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5411
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: Release Branch 11.04
>            Reporter: Praveen Agrawal
>            Assignee: Jacques Le Roux
>             Fix For: Release Branch 11.04, SVN trunk, Release Branch 12.04, Release Branch 13.07
>
>         Attachments: OFBiz-5411.patch
>
>
> “recreateOrderAdjustments” method inside OrderServices.xml (Line 659):- 
> <call-object-method obj-field="cart" method-name="makeAllAdjustments" ret-field="adjustments"/>
>         <!-- Accumulate the new promotion total from the recalculated promotion adjustments -->
>         <set field="newOrderAdjustmentTotal" value="0" type="BigDecimal"/>
>         <iterate list="adjustments" entry="adjustment">
>             <if>
>                 <condition>
>                     <not><if-empty field="orderAdjustment.productPromoId"/></not>
>                 </condition>
>                 <then>
>                     <calculate field="newOrderAdjustmentTotal" decimal-scale="3">
>                         <calcop operator="add">
>                             <calcop operator="get" field="adjustment.amount"/>
>                             <calcop operator="get" field="newOrderAdjustmentTotal"/>
>                         </calcop>
>                     </calculate>
>                 </then>
>             </if>
>         </iterate>
> 		While iterating the adjustments list we are checking with orderAdjustment.productPromoId rather then the adjustment.productPromoId. Using orderAdjustment.productPromoId the condition will never true and the newOrderAdjustmentTotal will always be 0.
> The issue is also exists in Release Branch 10.04. But i didn't found the 10.04 in Version List.



--
This message was sent by Atlassian JIRA
(v6.1#6144)