[
https://issues.apache.org/jira/browse/OFBIZ-7789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15646991#comment-15646991 ]
Paul Foxworthy commented on OFBIZ-7789:
---------------------------------------
Hi Mirko,
I think it should be possible to create an order when a product is not currently in stock. In other words, that's not an error, it's just a back order situation.
If the reservations *for this order* are removed and re-added, that should be fine. If the quantity of the order has changed, we might need to reserve additional quantities.
If you think there really is a problem, can you create a unit test to demonstrate it?
Cheers
Paul Foxworthy
> 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, Trunk
> Reporter: Mirko Vogelsmeier
> Fix For: Trunk
>
> 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
(v6.3.4#6332)