Details
Description
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 ).
<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>
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.
Attachments
Attachments
Issue Links
- fixes
-
OFBIZ-7789 ReserveStoreInventory with insufficient inventory
- Closed