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/04/01 12:23:00 UTC

[jira] [Updated] (OFBIZ-12455) Product inventory reservation places orders if quantityNotReserved !=0 and requireInventory=Y

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

Giulio Speri updated OFBIZ-12455:
---------------------------------
    Labels: backport-needed  (was: )

> Product inventory reservation places orders if quantityNotReserved !=0 and requireInventory=Y
> ---------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-12455
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12455
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ecommerce, order
>    Affects Versions: Trunk, 17.12.08, 18.12.01, 18.12.02, 18.12.03, Upcoming Branch
>         Environment: Linux/Ubuntu 20.04 LTS, Java 8
>            Reporter: Giulio Speri
>            Assignee: Giulio Speri
>            Priority: Major
>              Labels: backport-needed
>         Attachments: OFBIZ-12455_14122021_trunk.patch
>
>
> The service *reserveProductInventoryByFacility* (file InventoryReserveServices.xml) simply do nothing in case quantityNotReserved value is not 0, but (ProductStore) requireInventory = Y.
> Now, no action is taken and quantityNotReserved is simply returned to the caller (ie: reserveStoreInventory).
> In this scenario an order can be placed despite there is no available inventory to fulfill an order item, causing backorder (that we wanted to avoid setting requireInventory flag on the ProductStore to Y ).
>  
> {code:java}
> <if-compare field="parameters.quantityNotReserved" operator="not-equals" value="0" type="BigDecimal">
>   <if-compare field="parameters.requireInventory" operator="equals" value="Y">
>     <!-- use this else pattern to accomplish the anything but Y logic, ie if not specified default to inventory NOT required -->
>   <else> {code}
> I checked the usage of the service around the project and it seems to me that we can make an important assertion:  we can consider that also  requireInventory flag of the ProductStore is Y.
>  
> This issue is strictly related to OFBIZ-12264 issue.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)