Openbravo Issue Tracking System - Modules
View Issue Details
0026887ModulesWarehouse Pickingpublic2014-06-17 10:532015-01-21 15:44
jonalegriaesarte 
umartirena 
normalminorhave not tried
closedfixed 
5
 
 
Sandrahuguet
0026887: Generate picking list is generating stock reservation event though there is not stock in the warehouse for the product
Generate picking list is generating stock reservation event though there is not stock in the warehouse for the product
- Create a new product with sales price
- Create a sales order
- Two lines, one for the new product and the second one using a product with stock
- Book it
- Generate picking list
The system is creating stock reservation line for the product without stock with qty reserved 0.
No tags attached.
causes defect 0027457 closed AtulOpenbravo Openbravo ERP Stock Reservations are not processed when generating a picking list 
Issue History
2014-06-17 10:53jonalegriaesarteNew Issue
2014-06-17 10:53jonalegriaesarteAssigned To => naiaramartinez
2014-06-17 10:53jonalegriaesarteResolution time => 1409522400
2014-08-12 10:52AtulOpenbravoAssigned Tonaiaramartinez => AtulOpenbravo
2014-08-12 10:52AtulOpenbravoStatusnew => scheduled
2014-08-12 10:52AtulOpenbravofix_in_branch => pi
2014-08-13 13:20AtulOpenbravoReview Assigned To => rafaroda
2014-08-13 13:20AtulOpenbravofix_in_branchpi =>
2014-08-18 15:04hgbotCheckin
2014-08-18 15:04hgbotNote Added: 0069462
2014-08-18 15:04hgbotStatusscheduled => resolved
2014-08-18 15:04hgbotResolutionopen => fixed
2014-08-18 15:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/cd1a58e4bbb63c40e38ce509ca0142f3243f0404 [^]
2014-08-18 15:04hgbotCheckin
2014-08-18 15:04hgbotNote Added: 0069463
2014-08-18 16:33rafarodaNote Added: 0069466
2014-08-18 16:33rafarodaStatusresolved => closed
2014-08-19 19:44hudsonbotCheckin
2014-08-19 19:44hudsonbotNote Added: 0069522
2014-08-25 08:13ngarciaRelationship addedcauses 0027457
2014-08-27 10:44hgbotCheckin
2014-08-27 10:44hgbotNote Added: 0069791
2014-08-27 13:03AtulOpenbravoNote Added: 0069805
2014-08-27 13:03AtulOpenbravoStatusclosed => new
2014-08-27 13:03AtulOpenbravoResolutionfixed => open
2014-08-27 13:03AtulOpenbravoStatusnew => scheduled
2014-08-27 13:03AtulOpenbravofix_in_branch => pi
2014-10-16 11:47AtulOpenbravoNote Added: 0070987
2014-10-16 11:47AtulOpenbravoNote Edited: 0070987bug_revision_view_page.php?bugnote_id=0070987#r6807
2014-10-16 11:52AtulOpenbravoNote Added: 0070988
2014-10-16 11:53AtulOpenbravoNote Edited: 0070987bug_revision_view_page.php?bugnote_id=0070987#r6808
2014-10-20 08:18AtulOpenbravoFile Added: FinalFix26887.diff
2014-10-20 08:18AtulOpenbravoFile Added: RelatedToIssue26887.diff
2014-10-20 08:21AtulOpenbravoNote Added: 0071038
2015-01-02 13:47ngarciaIssue Monitored: ngarcia
2015-01-09 12:09AtulOpenbravoReview Assigned Torafaroda => umartirena
2015-01-09 12:09AtulOpenbravofix_in_branchpi =>
2015-01-09 12:10AtulOpenbravoFile Deleted: FinalFix26887.diff
2015-01-09 12:10AtulOpenbravoFile Deleted: RelatedToIssue26887.diff
2015-01-09 12:10AtulOpenbravoNote Deleted: 0071038
2015-01-09 12:11hgbotCheckin
2015-01-09 12:11hgbotNote Added: 0073393
2015-01-09 12:11hgbotStatusscheduled => resolved
2015-01-09 12:11hgbotResolutionopen => fixed
2015-01-09 12:11hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/cd1a58e4bbb63c40e38ce509ca0142f3243f0404 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/fe0deba2f493c5691003f87e7fea57ecb0c13a96 [^]
2015-01-09 12:25umartirenaNote Added: 0073395
2015-01-09 12:25umartirenaStatusresolved => closed
2015-01-14 12:42SandrahuguetAssigned ToAtulOpenbravo => umartirena
2015-01-14 12:42SandrahuguetNote Added: 0073487
2015-01-14 12:42SandrahuguetStatusclosed => new
2015-01-14 12:42SandrahuguetResolutionfixed => open
2015-01-14 16:44hgbotCheckin
2015-01-14 16:44hgbotNote Added: 0073498
2015-01-14 16:51umartirenaNote Edited: 0073487bug_revision_view_page.php?bugnote_id=0073487#r7445
2015-01-21 15:43SandrahuguetStatusnew => scheduled
2015-01-21 15:43Sandrahuguetfix_in_branch => pi
2015-01-21 15:43SandrahuguetStatusscheduled => resolved
2015-01-21 15:43SandrahuguetResolutionopen => fixed
2015-01-21 15:44SandrahuguetReview Assigned Toumartirena => Sandrahuguet
2015-01-21 15:44SandrahuguetNote Added: 0073688
2015-01-21 15:44SandrahuguetStatusresolved => closed

Notes
(0069462)
hgbot   
2014-08-18 15:04   
Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: cd1a58e4bbb63c40e38ce509ca0142f3243f0404
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Aug 13 14:01:32 2014 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/cd1a58e4bbb63c40e38ce509ca0142f3243f0404 [^]

Fixes Issue 26887:Generate WPL creates Stock reservation for no stock product

---
M src/org/openbravo/warehouse/pickinglist/CreateActionHandler.java
---
(0069463)
hgbot   
2014-08-18 15:04   
Repository: erp/devel/pi
Changeset: e414f3f0e2986c28db926b692d9747b80cb7857a
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Aug 13 14:03:09 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e414f3f0e2986c28db926b692d9747b80cb7857a [^]

Related To Issue 26887:Generate PL creates Stock reservation for no stock prod

---
M src-db/database/model/functions/M_RESERVATION_POST.xml
---
(0069466)
rafaroda   
2014-08-18 16:33   
Properly completed test: see screenshots at https://drive.google.com/folderview?id=0B649lz4ZYJcHbDRPUXRMbkdFVk0&usp=sharing [^]

1) Created sales order with 2 lines: a product with stock and another one without stock

2) Generated Picking List with message: There is not enough stock in warehouses to create the whole Picking List. : [PL307]

3) Goods shipment created just included product with stock

4) Stock reservation generated only for product with stock
(0069522)
hudsonbot   
2014-08-19 19:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/dfa98e390e6a [^]
Maturity status: Test
(0069791)
hgbot   
2014-08-27 10:44   
Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: 78727f0c017abe429b0b3c45acbc50053e9ad165
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Aug 27 14:13:37 2014 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/78727f0c017abe429b0b3c45acbc50053e9ad165 [^]

Backout Issue 26887

---
M src/org/openbravo/warehouse/pickinglist/CreateActionHandler.java
---
(0069805)
AtulOpenbravo   
2014-08-27 13:03   
Re-open, backout changeset to publish a version with out Core module dependency.
(0070987)
AtulOpenbravo   
2014-10-16 11:47   
(edited on: 2014-10-16 11:53)
Test Plan
- Enable Stock Reservation = Yes in the preferences.
- Create a new product and add price to it in Sales Price List Version.
- Create a sales order header.
- Create two lines, one for the new product and the second one using a product with stock [Reservation type can be set as Automatic in the order line]. Book it.
- Click on Generate picking list. Choose Direct Picking option. Process it.
- Check that system is creating stock reservation only for the product with stock.

(0070988)
AtulOpenbravo   
2014-10-16 11:52   
Alternate Test Plan
- Enable Stock Reservation = Yes in the preferences.
- In Warehouse and Storage bin, set Type as Outbound to one of Storage Bin.
- Create a new product and add price to it in Sales Price List Version.
- Create a Sales Order with two lines, one for new product, one for existing product which has stock.[Reservation type can be set as Automatic in the order line] Book it.
- Using Generate picking list button, select Outbound type and choose appropriate bin, process it.
- Check that system is creating stock reservation only for product with stock.
(0073393)
hgbot   
2015-01-09 12:11   
Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: fe0deba2f493c5691003f87e7fea57ecb0c13a96
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Jan 09 00:26:29 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/fe0deba2f493c5691003f87e7fea57ecb0c13a96 [^]

Fixes Issue 26887:Generate picking list is generating stock reservation even
though there is not stock in the warehouse for the product

Get Reservation from SO Line is skipped by checking whether stock for product
exists or not for both options Direct Picking and Outbound Picking List

---
M src/org/openbravo/warehouse/pickinglist/CreateActionHandler.java
M src/org/openbravo/warehouse/pickinglist/SelectOrdersHandler.java
M src/org/openbravo/warehouse/pickinglist/Utilities.java
---
(0073395)
umartirena   
2015-01-09 12:25   
Code Review and Testing Done.

The solution implemented finally is not core dependent, so is not necessary to update the dependency to it.
(0073487)
Sandrahuguet   
2015-01-14 12:42   
(edited on: 2015-01-14 16:51)
Reopened because this test case is not working:

As group admin role:
   Check F&B EspaƱa organization has both warehouses (Norte and Sur) defined as on hand
   Select a product which has stock only in one of that warehouses
   Create an order for the other warehouse (the one without stock of that product)
   Add the product to it and book it
   Try to generate the Picking List and check the following error message is shown:
      "There is not enough stock"
   The warehouse defined in the header should be the one where the stock is taken from, but in case it doesn't have stock, other on hand warehouses should be checked

(0073498)
hgbot   
2015-01-14 16:44   
Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: 841cb816dd724be7a98ba7a14453f037a2138b73
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Wed Jan 14 16:43:15 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/841cb816dd724be7a98ba7a14453f037a2138b73 [^]

Related to Bug 26887:getstock should not be filtered by warehouse in dir picking

For direct picking the callGetStock method should not filter by warehouse of the Sales Order Header. But for Outbound picking it has to, so a boolean parameter has been added to the method in order to manage this. As this is a private method there is no api change doing this change.
Also a change has been added in catch code inside CreateActionHandler to return properly the error messages obtained.

---
M src/org/openbravo/warehouse/pickinglist/CreateActionHandler.java
M src/org/openbravo/warehouse/pickinglist/Utilities.java
---
(0073688)
Sandrahuguet   
2015-01-21 15:44   
Code review + testing OK