[ https://issues.apache.org/jira/browse/OFBIZ-7481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16623280#comment-16623280 ]
Swapnil M Mane commented on OFBIZ-7481: --------------------------------------- Discussion related to this issue is also done on dev list https://s.apache.org/3rFz Committing here link, just for future references. > ProductFacility record must exist before creating inventoryItem for a facility > ------------------------------------------------------------------------------ > > Key: OFBIZ-7481 > URL: https://issues.apache.org/jira/browse/OFBIZ-7481 > Project: OFBiz > Issue Type: Bug > Components: product > Affects Versions: 14.12.01, 16.11.01, 15.12.01, 13.07.04 > Reporter: Suraj Khurana > Assignee: Vaibhav Jain > Priority: Major > > ProductFacility entity is used to decide that a particular product is > maintained in which facility. So, in case of receiving a product in a > facility or in case creating InventoryItem for a facility, the > ProductFacility record must exist. But in these cases, currently in OFBiz > inventoryItem gets created even if ProductFacility record doesn't exist. > Proposed solution: > 1) In receiveInventoryProduct service check and create ProductFacility record > if not exist. -- This message was sent by Atlassian JIRA (v7.6.3#76005)