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

Order On Hold Auto Approves When Edited

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Trunk
    • 14.12.01, 12.04.06, 13.07.02
    • order
    • None

    Description

      If you put an approved order on hold and then later cancel an item on the order, the order is auto approved. Order must have two line items to test the behavior. The expected result is that order should stay on hold.

      In this chain of events, following eca is triggered. The service 'checkOrderItemStatus' should be fixed such that it also check the current order header status before it approve the order.

          <eca service="changeOrderItemStatus" event="commit">
              <condition field-name="statusId" operator="equals" value="ITEM_CANCELLED"/>
              <action service="cancelOrderInventoryReservation" mode="sync"/>
              <action service="recalcTaxTotal" mode="sync"/>
              <action service="resetGrandTotal" mode="sync"/>
              <action service="checkOrderItemStatus" mode="sync"/>
          </eca>
      

      Attachments

        1. order.patch
          0.7 kB
          Vikas Mayur

        Activity

          People

            toashishvijay Ashish Vijaywargiya
            vikasmayur Vikas Mayur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: