[jira] [Created] (OFBIZ-7789) ReserveStoreInventory with insufficient inventory

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

[jira] [Created] (OFBIZ-7789) ReserveStoreInventory with insufficient inventory

Nicolas Malin (Jira)
Mirko Vogelsmeier created OFBIZ-7789:
----------------------------------------

             Summary: ReserveStoreInventory with insufficient inventory
                 Key: OFBIZ-7789
                 URL: https://issues.apache.org/jira/browse/OFBIZ-7789
             Project: OFBiz
          Issue Type: Bug
    Affects Versions: Trunk, Release Branch 13.07
            Reporter: Mirko Vogelsmeier
             Fix For: Trunk


When trying to reserve inventory for an item that does not have sufficient amount of inventory ( ProductStoreServices#reserveStoreInventory ) no error is thrown. This results in a successfully processed service.

Following problem occured to us:
We have a unique product (qoh 1) that is in the current order.
Using the appendOrderItem on the exact product, does trigger updateCartForUpdate which removes all reservations followed by saveUpdatedCartToOrder that does store all orderItems to the order. Since no error is being thrown due to the insufficient inventory, the product is added to the order twice, although there is not enough inventory.



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