[
https://issues.apache.org/jira/browse/OFBIZ-7161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Deepak Dixit closed OFBIZ-7161.
-------------------------------
Resolution: Duplicate
> 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)