You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Giulio Speri (Jira)" <ji...@apache.org> on 2022/10/15 15:03:00 UTC

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

     [ https://issues.apache.org/jira/browse/OFBIZ-7789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Giulio Speri closed OFBIZ-7789.
-------------------------------
    Fix Version/s: 22.01.01
                   18.12.06
       Resolution: Fixed

> ReserveStoreInventory with insufficient inventory
> -------------------------------------------------
>
>                 Key: OFBIZ-7789
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7789
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: Release Branch 13.07, 22.01.01, Upcoming Branch
>            Reporter: Mirko Vogelsmeier
>            Assignee: Giulio Speri
>            Priority: Major
>             Fix For: 22.01.01, 18.12.06
>
>         Attachments: OFBIZ-7789.patch
>
>
> 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
(v8.20.10#820010)