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

Swapnil Shah commented on OFBIZ-817:
------------------------------------

As per further testing over trunk, it is found that setting requireInventory=Y 
over any marketing package type product means that for component products as 
well it would get honored even if its not set as Y for each or any of the 
components. 

In other words say,
* The flag is as set as Y for a marketing package type product A and it has 
ATP/QOH=15/15
* Product A has two component B & C as finished good and each having ATP/QOH = 
8/8 and requireInventory is not set as Y for any of the components.
*  If sales order is attempted to be placed for A with ordered qty = 10 then 
system won't allow it to be placed because component B & C don't have 
sufficient ATP (irrespective of fact that none of them have requireInventory=Y)

Expected behavior in above case should be to allow user to place the order for 
Product A as it has sufficient ATP=15 to fulfill the ordered qty=10. If the 
ordered qty happens to exceed 15 then only it should prevent ordering based on 
requireInventory=Y

> Require Inventory of Marketing Package Product can't be shipped
> ---------------------------------------------------------------
>
>                 Key: OFBIZ-817
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-817
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Trunk
>         Environment: February 2007 svn
>            Reporter: Daniel Kunkel
>            Priority: Minor
>
> Setting Require Inventory for a Marketing Product and (or ???) its Marketing 
> Component causes the shiping system to fail. The shipping system reports 
> nothing is ready to ship, (  [0 + 0 = 0] < 1 ).
> ---- exception report 
> ----------------------------------------------------------
> [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this 
> stack trace shows where this is happening:
> Exception: java.lang.Exception
> Message: Error in simple-method [Quick ships an entire order from multiple 
> facilities [file:/wrk/ofbiz/ofbiz/applications/
> product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml#quickShipEntireOrder]]:
>  ; [Warning: no shipments created;
> could not find anything ready and needing to be shipped.]
> ---- stack trace 
> ---------------------------------------------------------------
> java.lang.Exception: Error in simple-method [Quick ships an entire order from 
> multiple facilities [file:/wrk/ofbiz/ofbiz/
> applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml#quickShipEntireOrder]]:
>  ; [Warning: no shipments
> created; could not find anything ready and needing to be shipped.]
> org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:285)
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:235)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:697)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:105)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:87)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:340)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:211)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:113)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:290)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:409)



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

Reply via email to