Errors about inventory levels when packing a product split across more than one 
inventory item
----------------------------------------------------------------------------------------------

                 Key: OFBIZ-296
                 URL: http://issues.apache.org/jira/browse/OFBIZ-296
             Project: OFBiz (The Open for Business Project)
          Issue Type: Bug
          Components: product
    Affects Versions: SVN trunk
            Reporter: Marco Risaliti


To reproduce this you will need a product with more than one inventory item 
that has enough levels i.e. two items with ATP/QOH of 10/10. 

Raise an order for the product with a quantity of 15 and approve if needed, you 
can skip the pick section just go straight to pack and enter the order id with 
the shipment 00001. 

Tick the checkbox to pack your 15 items and click the "Pack Items" button. 

The on screen error reports: 
  Not enough inventory reservation available; cannot pack the item! 

In reality we have enough and it is reserved across both inventory items when 
viewed in the order manager, but it wont let you pack it. 

Exception follows: 
646479 (http-0.0.0.0-8081-Processor3) [ RequestHandler.java:210:INFO ] 
[Processing Request]: ProcessBulkPackOrder 
646489 (http-0.0.0.0-8081-Processor3) [ PackingServices.java:96 :INFO ] Item: 
00001 / Product: GZ-8544 / Quantity: 15 / Package: 1 
646509 (http-0.0.0.0-8081-Processor3) [ PackingSession.java:225:INFO ] No 
current line found testing R: 10.0 / Q: 15.0 
646509 (http-0.0.0.0-8081-Processor3) [ PackingSession.java:225:INFO ] No 
current line found testing R: 5.0 / Q: 15.0 
646520 (http-0.0.0.0-8081-Processor3) [ PackingServices.java:110:ERROR] 
---- exception report 
---------------------------------------------------------- 
Exception: org.ofbiz.base.util.GeneralException 
Message: Not enough inventory reservation available; cannot pack the item! 
---- stack trace 
--------------------------------------------------------------- 
org.ofbiz.base.util.GeneralException: Not enough inventory reservation 
available; cannot pack the item! 
org.ofbiz.shipment.packing.PackingSession.addOrIncreaseLine(PackingSession.java:148)
 
org.ofbiz.shipment.packing.PackingServices.packBulk(PackingServices.java:108) 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
java.lang.reflect.Method.invoke(Method.java:324) 
.......... 

 
 

 All    Comments    Work Log    Change History       Sort Order:   
Comment by Leon Torres [15/Nov/05 03:04 PM] [ Permlink ] 
This is probably a user error. These are the usual steps I use, which work: 

Create two inventory items for a product with ATP/QOH of 10/10. 
Create a sales order for 15 of this product. 
In the orderview, select [New Shipment For Ship Group ...] 
In the shipment form that comes up, select an Origin Facility 
Click [Update] 
Click on the [Order Items] tab 
Select [Issue All] 
Click on [Items] tab 
Under the Quantity column, click [Add] 
Note that the quantities issued are pulled from both inventory items 
Check the facility inventory to verify this 
The rest of the process: click on [Edit], update shipment to Packed. 

Comment by Andrew Zeneski [15/Nov/05 03:19 PM] [ Permlink ] 
This very well could be a bug in the new packing code. I will look into this. 

Comment by Ray Barlow [15/Nov/05 03:35 PM] [ Permlink ] 
OK I forgot to be explicit about the screen that fails, although the 
reproduction instructions don't work for the ordermgr view. Try this one: 
  http://localhost:8080/facility/control/PackOrder?facilityId=WebStoreWarehouse 

You are right about the ordermgr screens being able to do a similar job as I 
currently have to use those as a work around for this issue. Although that 
causes it's own problems like invoices not being raised in synch with the 
packed items that the facility screen has raised. 

The process as I see it would be that I don't need to use the ordermgr shipment 
screens, for most orders i.e. I can create a picking list, pick and then pack 
through the facility manager and the shipments are taken care of, indeed the 
order will go through to completion if all is packed OK. 


PS: There is no facility component in the Jira logging options so this was 
logged under product which is were facility currently sits in the folder 
structure. Maybe it would be clearer to have it as a seperate Jira component 
option? 

Comment by Marco Risaliti [14/Sep/06 02:07 AM] [ Permlink ] 
Can we close it or move it ? 

Thanks 
Marco 

It's a copy of the old-jira issur OFBIZ-562

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to