[ 
https://issues.apache.org/jira/browse/OFBIZ-4476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213525#comment-14213525
 ] 

Mridul Pathak commented on OFBIZ-4476:
--------------------------------------

The current behavior of the service seems to be right, 
productStore.inventoryFacilityId is considered only when 
productStore.oneInventoryFacility="Y". So even if there are multiple 
facilities, but the product store is configured to use only one specific 
facility then the inventory calculations should be done for only that one 
facility.
On the contrary, if there is a requirement to configure multiple facilities for 
the product store, ProductStoreFacility entity could be used and in that case 
productStore.oneInventoryFacility should be set to N and 
productStore.inventoryFacilityId could be left empty. In which case the 
mentioned service would iterate through each facility until it finds inventory 
available in one of them.

The service is behaving in the same manner is release 12.04, 13.07 and in Trunk.

I believe that above behavior is intended and is correct and we could safely 
close this issue.

> isStoreInventoryAvailableOrNotRequired doesn't take into account multiple 
> facilities
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-4476
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4476
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product, specialpurpose/ecommerce
>    Affects Versions: Release Branch 11.04
>            Reporter: Kiran Gawde
>
> If there is no product inventory in the facility specified in 
> inventoryFacilityId at store level, isStoreInventoryAvailableOrNotRequired 
> returns "N"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to