Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028640Openbravo ERP04. Warehouse managementpublic2015-01-16 10:352015-02-04 20:34
ngarcia 
umartirena 
urgentmajoralways
closedfixed 
5
 
3.0PR15Q23.0PR15Q2 
Sandrahuguet
Core
No
0028640: Reservation line is duplicated if it is already released and it is selected when managing it from Sales Order window
Reservation line is duplicated if it is already released and it is selected when managing it from Sales Order window
As group admin role:
   Create a Sales Order
   Add 10 units of Zumo de Naranja Bio 0.33L
   Book it
   Click on Manage Reservation and Done
   Click again and reduce the reserved quantity (4 units)
   Select a reservation line with a different attribute set and add a quantity less than the pending quantity (2 units)
   Create a Goods shipment with the same attribute set and quantity (4 units) than the first reservation line and complete it
   Return to the Sales Order, click on the Manage Reservation and increase the quantity of the second line without unmarking the already released one
   Check a new reservation line of 4 units is created
   
Note: You should unselect the released line not to duplicate it. The problem is not reproduced from the Stock Reservation window
   
No tags attached.
Issue History
2015-01-16 10:35ngarciaNew Issue
2015-01-16 10:35ngarciaAssigned To => Sandrahuguet
2015-01-16 10:35ngarciaModules => Core
2015-01-16 10:35ngarciaResolution time => 1424300400
2015-01-16 10:35ngarciaTriggers an Emergency Pack => No
2015-01-16 10:36ngarciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7468#r7468
2015-01-22 13:05umartirenaAssigned ToSandrahuguet => umartirena
2015-01-22 17:05hgbotCheckin
2015-01-22 17:05hgbotNote Added: 0073726
2015-01-22 17:05hgbotStatusnew => resolved
2015-01-22 17:05hgbotResolutionopen => fixed
2015-01-22 17:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d4a038cf2708b1e64c68b9f9a0015e0d419126a1 [^]
2015-01-22 17:08umartirenaReview Assigned To => Sandrahuguet
2015-01-28 10:21SandrahuguetNote Added: 0073849
2015-01-28 10:21SandrahuguetStatusresolved => closed
2015-01-28 10:21SandrahuguetFixed in Version => 3.0PR15Q2
2015-02-04 20:34hudsonbotCheckin
2015-02-04 20:34hudsonbotNote Added: 0074173

Notes
(0073726)
hgbot   
2015-01-22 17:05   
Repository: erp/devel/pi
Changeset: d4a038cf2708b1e64c68b9f9a0015e0d419126a1
Author: Unai Martirena <unai.martirena <at> openbravo.com>
Date: Thu Jan 22 17:05:07 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d4a038cf2708b1e64c68b9f9a0015e0d419126a1 [^]

Fixes bug 28640:Res. line with amt released not duplicated in Manage Reservation

The problem is that when opening Manage Reservations P&E from sales order line, the property 'reservationStock' comes blank, even when a reservation stock line exists (When there is no reservation for the sales orderline a temporary one is created just to display lines in the selector selected correctly, and after that is deleted. This happens in the datasource of the P&E). In this cases the Manage Reservations action handler deletes these lines y they exists and creates new ones. But this is not possible for already released lines, so it was creating a duplicate of those.

In order to fix this, the property 'id' is used (allways comes with a value) in the case that the reservation is released, because in this case for sure that the reservation stock line exists, so it will update the existing one instead of creating a new one.

---
M src/org/openbravo/common/actionhandler/ManageReservationActionHandler.java
---
(0073849)
Sandrahuguet   
2015-01-28 10:21   
Code review + testing OK
(0074173)
hudsonbot   
2015-02-04 20:34   
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/f36c91d0ad63 [^]
Maturity status: Test