Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032089Openbravo ERP04. Warehouse managementpublic2016-02-02 13:272016-03-17 10:56
ngarcia 
aferraz 
urgentmajoralways
closedfixed 
5
 
 
vmromanos
Core
No
0032089: Product with stock in second UOM is automatically reserved but it is not possible to reserve it manually
Product with stock in second UOM is automatically reserved but it is not possible to reserve it manually
As system admin role:
   Set as displayed the 'Order UOM' and 'Order Quantity' fields of the Sales Order and Goods Receipt windows
   Set as Active the 'Product - UOM' and 'Unit Of Measure - Conversion' tabs
As group admin role:
   Enable the Stock Reservation preference
   Create a new product and add a sales price to it
   Add a Unit Of Measure to it in the UOM tab
   Define a conversion between that UOM and the Unit of the Product tab
   Create a goods receipt, add the already created product in the line and set the Order UOM and Order Quantity fields. Storage bin Rn-0-0-0
   Complete it
   Create another goods receipt, add the already created product in the line and set the Order UOM and Order Quantity fields. Make sure the storage bin selected is a different one. RN-1-0-0.
   Create a Sales Order, add the already created product in the line and set the Order UOM and Order Quantity fields
   Complete it
   Click on the Manage Reservation button and check that only one line is shown in there, regardless there is available stock in two different storage bins.
   Create a similar Sales Order but set the Stock Reservation = Automatic in the line
   Complete it and check the stock has been reserved, 10 units from RN-0-0-0 and 10 units from Rn-1-0-0
Reservations feature current design is not supposed to support reservations for item having a second UOM, therefore no reservation should be created.
No tags attached.
related to feature request 0032090 new Triage Omni WMS Stock Reservations feature should support second UOM 
related to design defect 00280513.0PR15Q2 closed umartirena Reserved quantity is not correct under certain circumstancies 
depends on defect 00320783.0PR16Q2 closed aferraz Reserved quantity is not correct under certain circumstances 
Issue History
2016-02-02 13:27ngarciaNew Issue
2016-02-02 13:27ngarciaAssigned To => Triage Finance
2016-02-02 13:27ngarciaModules => Core
2016-02-02 13:27ngarciaResolution time => 1457305200
2016-02-02 13:27ngarciaTriggers an Emergency Pack => No
2016-02-02 13:27ngarciaIssue Monitored: networkb
2016-02-02 13:31ngarciaRelationship addedrelated to 0032090
2016-02-04 14:15aferrazStatusnew => scheduled
2016-02-04 14:15aferrazAssigned ToTriage Finance => aferraz
2016-02-05 11:40aferrazNote Added: 0083960
2016-02-05 11:40aferrazRelationship addedrelated to 0032078
2016-02-05 11:41aferrazRelationship addedrelated to 0028051
2016-02-05 11:43aferrazNote Edited: 0083960bug_revision_view_page.php?bugnote_id=0083960#r10960
2016-02-05 11:44aferrazNote Added: 0083961
2016-02-05 13:20aferrazRelationship deletedrelated to 0032078
2016-02-05 13:20aferrazRelationship addeddepends on 0032078
2016-02-05 15:03psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10975#r10975
2016-02-05 15:05psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10976#r10976
2016-02-05 15:09psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10977#r10977
2016-02-05 15:09psanjuanProposed Solution updated
2016-02-05 15:11psanjuanNote Added: 0083987
2016-02-08 12:53psanjuanNote Edited: 0083960bug_revision_view_page.php?bugnote_id=0083960#r10978
2016-02-08 13:01psanjuanNote Edited: 0083960bug_revision_view_page.php?bugnote_id=0083960#r10979
2016-02-08 13:04psanjuanNote Edited: 0083987bug_revision_view_page.php?bugnote_id=0083987#r10981
2016-02-08 13:07psanjuanNote Edited: 0083961bug_revision_view_page.php?bugnote_id=0083961#r10983
2016-02-08 13:08psanjuanNote Added: 0084001
2016-02-10 17:25hgbotCheckin
2016-02-10 17:25hgbotNote Added: 0084089
2016-02-10 17:25hgbotStatusscheduled => resolved
2016-02-10 17:25hgbotResolutionopen => fixed
2016-02-10 17:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9780a522268784f86d28accf478a6774dad6af3a [^]
2016-02-10 17:25vmromanosReview Assigned To => vmromanos
2016-02-10 17:25vmromanosNote Added: 0084090
2016-02-10 17:25vmromanosStatusresolved => closed
2016-03-17 10:56hudsonbotCheckin
2016-03-17 10:56hudsonbotNote Added: 0085127
2018-07-19 11:55AtulOpenbravoNote Edited: 0083960bug_revision_view_page.php?bugnote_id=0083960#r17435
2018-07-19 11:56AtulOpenbravoNote Edited: 0083961bug_revision_view_page.php?bugnote_id=0083961#r17436

Notes
(0083960)
aferraz   
2016-02-05 11:40   
(edited on: 2018-07-19 11:55)
Test plan I:

As system admin role:
   Set as displayed the 'Order UOM' and 'Order Quantity' fields of the Sales Order and Goods Receipt windows
   Set as Active the 'Product - UOM' and 'Unit Of Measure - Conversion' tabs
As group admin role:
   Enable the Stock Reservation preference
   Create a new product and add a sales price to it
   Add a Unit Of Measure to it in the UOM tab
   Define a conversion between that UOM and the Unit of the Product tab
   Create a goods receipt, add the already created product in the line and set the Order UOM and Order Quantity fields
   Complete it
   Create a Sales Order, add the already created product in the line and set the Order UOM and Order Quantity fields
   Complete it
   Check that Reservation Status column shows "Not Reserved".
   Click on the Manage Reservation button and check no lines are shown.
   Click Done.
   Check in Stock Reservation, no record is created for Sales Order created above.
   Create a similar Sales Order but set the Stock Reservation = Automatic in the line.
   Click on the Manage Reservation button and check no lines are shown.
   Click Done.
   Complete it and check that a Stock Reservation has been created, with sales order line quantity, reserved qty = 0 in draft status. Once more this stock reservation has no lines.

(0083961)
aferraz   
2016-02-05 11:44   
(edited on: 2018-07-19 11:56)
Test plan II:

As group admin role:
   Enable the Stock Reservation preference
   Create a new product and add a sales price to it
   Create a Sales Order, add the already created product in the line and set any quantity.
   Complete it
   Click on the Manage Reservation button and check no lines are shown.
   Click Done.
   Check Stock Reservation and realize that no record is created for previous processed order.
   Create a similar Sales Order but set the Stock Reservation = Automatic in the line
   Complete it and realize a Stock Reservation has been created with sales order line quantity and draft status but with no lines, because there is no stock.

(0083987)
psanjuan   
2016-02-05 15:11   
(edited on: 2016-02-08 13:04)
Issue verified.

(0084001)
psanjuan   
2016-02-08 13:08   
Test plan above verified.

Issue can be code reviewed and close.
(0084089)
hgbot   
2016-02-10 17:25   
Repository: erp/devel/pi
Changeset: 9780a522268784f86d28accf478a6774dad6af3a
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Fri Feb 05 12:02:24 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9780a522268784f86d28accf478a6774dad6af3a [^]

Fixes issue 32089: Reservations with stock in second UOM will not be created

M_RESERVE_STOCK_AUTO will exclude lines from m_storage_detail with second uom to avoid create stock reservation lines for products with stock in second UOM, as it is done in M_CREATE_RESERVE_FROM_SOL.

---
M src-db/database/model/functions/M_RESERVE_STOCK_AUTO.xml
---
(0084090)
vmromanos   
2016-02-10 17:25   
Code review OK
(0085127)
hudsonbot   
2016-03-17 10:56   
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/b22fb0500156 [^]
Maturity status: Test