[jira] [Created] (OFBIZ-7161) set field not correct, when it type is BigDecimal and value is minus, in simple-method cancelReceivedItems (ShipmentReceiptServices.xml)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-7161) set field not correct, when it type is BigDecimal and value is minus, in simple-method cancelReceivedItems (ShipmentReceiptServices.xml)

Nicolas Malin (Jira)
dalater created OFBIZ-7161:
------------------------------

             Summary: set field  not correct, when it type is BigDecimal and value is minus, in simple-method cancelReceivedItems  (ShipmentReceiptServices.xml)
                 Key: OFBIZ-7161
                 URL: https://issues.apache.org/jira/browse/OFBIZ-7161
             Project: OFBiz
          Issue Type: Bug
          Components: product
    Affects Versions: Release Branch 13.07
         Environment: Debian(testing) + oracleJDK(v1.8.0_92)
            Reporter: dalater


......
        <set field="inventoryItemDetailMap.quantityOnHandDiff" value="${-1 * inventoryItem.quantityOnHandTotal}" type="BigDecimal"/>
        <set field="inventoryItemDetailMap.availableToPromiseDiff" value="${-1 * inventoryItem.availableToPromiseTotal}" type="BigDecimal"/>
        <call-service service-name="createInventoryItemDetail" in-map-name="inventoryItemDetailMap"/>
......

when serialized item be  canceled, set field result is always  1,  not -1

simple-method cancelReceivedItems  in file ShipmentReceiptServices.xml



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