Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024953Openbravo ERP04. Warehouse managementpublic2013-10-15 16:562013-10-29 19:08
gorkaion 
gorkaion 
urgentmajoralways
closedfixed 
20Gentoo
 
3.0MP29 
psarobe
Core
No
0024953: Error releasing reserve when shipping a order that is not completely reserved
When it is shipped a partially reserved order, using a different stock than it has reserved. If the reservation release process has to reassign reserved stock. The process throws an ''Cannot consume all stock'' error although there is enough stock available.
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) but just 3 units instead of 5

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: 3 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 and put 5 units to completely ship the order.
7. Complete the shipment.

An error is thrown that not all reserved stock can be consumed, but there is enough.
No tags attached.
related to defect 00249523.0MP29 closed gorkaion Error releasing reserve when shipping a different stock than reserved 
Issue History
2013-10-15 16:56gorkaionNew Issue
2013-10-15 16:56gorkaionAssigned To => gorkaion
2013-10-15 16:56gorkaionModules => Core
2013-10-15 16:56gorkaionTriggers an Emergency Pack => No
2013-10-15 16:56gorkaionIssue generated from0024952
2013-10-15 16:56gorkaionRelationship addedrelated to 0024952
2013-10-15 16:58gorkaionReview Assigned To => psarobe
2013-10-15 17:00hgbotCheckin
2013-10-15 17:00hgbotNote Added: 0061684
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-16 19:47hudsonbotCheckin
2013-10-16 19:47hudsonbotNote Added: 0061757
2013-10-29 19:08psarobeNote Added: 0061953
2013-10-29 19:08psarobeStatusresolved => closed

Notes
(0061684)
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
---
(0061757)
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
(0061953)
psarobe   
2013-10-29 19:08   
Works fine