Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-7161

set field not correct, when it type is BigDecimal and value is minus, in simple-method cancelReceivedItems (ShipmentReceiptServices.xml)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: Release Branch 13.07
    • Fix Version/s: None
    • Component/s: product
    • Labels:
      None
    • Environment:

      Debian(testing) + oracleJDK(v1.8.0_92)

      Description

      ......
      <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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dalater dalater
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: