Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024952Openbravo ERP04. Warehouse managementpublic2013-10-15 16:532013-10-29 18:32
gorkaion 
gorkaion 
urgentmajoralways
closedfixed 
20Gentoo
 
3.0MP293.0MP29 
psarobe
Core
No
0024952: Error releasing reserve when shipping a different stock than reserved
When it is shipped a reserved order, using a different stock than it has reserved. If the reservation release process has to reassign more than one order's reservations to reallocate the reserved stock. The delivered order reservation result in a wrong reserved quantity
0 On a Reservations enabled environment (check and add the enable reservations preference if it does not exist)
1 Create a new Product Test.
2 Create a physical inventory to initialize the stock, 6 units in storage bin A and 6 units on storage bin B.
3. Create a sales order with 2 lines, each with 2 units on product test.
4. Book and reserve the order. Check that both lines reserve the stock from the same storage bin (f.e. storage bin A)
5. Create a new sales order add one line of 5 units of product test. Reserve the sales order with stock of the other storage bin (storage bin B)

At this moment the rservations are:
SO 1. line 1: 2 units in storage bin A
SO 1. line 2: 2 units in storage bin A
SO 2. line 1: 5 units in storage bin B

6. Create a shipment manually using the ''Create Lines from'' button for the second sales order. Choose the storage bin A.
7. Complete the shipment.

check the reservations status:

Current:
SO 1. line 1: 2 units in storage bin B
SO 1. line 2: 2 units in storage bin B
SO 2. line 1: '''6''' units in storage bin A (quantity and released qty are 5 but reserved quantity is 6)

Expected
SO 1. line 1: 2 units in storage bin B
SO 1. line 2: 1 units in storage bin A and 1 units in storage bin B
SO 2. line 1: 5 units in storage bin A
No tags attached.
related to defect 00249533.0MP29 closed gorkaion Error releasing reserve when shipping a order that is not completely reserved 
Issue History
2013-10-15 16:53gorkaionNew Issue
2013-10-15 16:53gorkaionAssigned To => gorkaion
2013-10-15 16:53gorkaionModules => Core
2013-10-15 16:53gorkaionTriggers an Emergency Pack => No
2013-10-15 16:56gorkaionIssue cloned0024953
2013-10-15 16:56gorkaionRelationship addedrelated to 0024953
2013-10-15 17:00hgbotCheckin
2013-10-15 17:00hgbotNote Added: 0061683
2013-10-15 17:00hgbotStatusnew => resolved
2013-10-15 17:00hgbotResolutionopen => fixed
2013-10-15 17:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3f0bc7b813d49f8820bc3c2e20d61e99a7d9ded8 [^]
2013-10-15 17:01gorkaionStatusresolved => new
2013-10-15 17:01gorkaionResolutionfixed => open
2013-10-15 17:01gorkaionReview Assigned To => psarobe
2013-10-15 17:01gorkaionStatusnew => scheduled
2013-10-15 17:01gorkaionfix_in_branch => pi
2013-10-15 17:01gorkaionStatusscheduled => resolved
2013-10-15 17:01gorkaionFixed in Version => 3.0MP29
2013-10-15 17:01gorkaionResolutionopen => fixed
2013-10-16 19:47hudsonbotCheckin
2013-10-16 19:47hudsonbotNote Added: 0061756
2013-10-29 18:32psarobeNote Added: 0061952
2013-10-29 18:32psarobeStatusresolved => closed

Notes
(0061683)
hgbot   
2013-10-15 17:00   
Repository: erp/devel/pi
Changeset: 3f0bc7b813d49f8820bc3c2e20d61e99a7d9ded8
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Tue Oct 15 16:58:40 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/3f0bc7b813d49f8820bc3c2e20d61e99a7d9ded8 [^]

Fixed issue 24952.Fixed issue 24953. Fixed issues reallocating reserved stock.

---
M src-db/database/model/functions/M_RESERVATION_CONSUMPTION.xml
M src-db/database/model/functions/M_RESERVATION_REALLOCATE.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0061756)
hudsonbot   
2013-10-16 19:47   
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/51315988909a [^]

Maturity status: Test
(0061952)
psarobe   
2013-10-29 18:32   
Works fine now