[
https://issues.apache.org/jira/browse/OFBIZ-12455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Giulio Speri updated OFBIZ-12455:
---------------------------------
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 ).
{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.
was:
The service *reserveProductInventoryByFacility* 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 ).
I checked the usage of the service around the project and it seems to me that
we can make an important assumption
This issue is strictly related to OFBIZ-12264 issue.
> 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
> Environment: Linux/Ubuntu 20.04 LTS, Java 8
> Reporter: Giulio Speri
> Assignee: Giulio Speri
> Priority: Major
>
> 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)