Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024035Openbravo ERP04. Warehouse managementpublic2013-06-10 18:202013-06-26 12:27
umartirena 
jecharri 
urgentmajoralways
closedfixed 
5
 
3.0MP253.0MP25 
jonalegriaesarte
Core
No
0024035: Posting Good shipment pre-reservation not cleared.
While posting a good shipment the pre-reservation is not cleared in the following situation:
 - Sales Order with a pre-reservation to a Purchase Order not received.
 - The m_reservation_stock line has the m_attributesetinstance_id null.
 - A goods shipment exists related to the sales order with a lot present in stock.

While posting the shipment, the new reservation of the new lot gets created and released, but the pre-reservation does not get cleared, leaving more quantity reserved than the initial quantity reserved.
- Create a Purchase Order for a certain product.
- Create a Sales Order for the same product and make a pre-reservation of the previous created PO. Make sure that the m_attributesetinstance_id of the m_reservation_stock record is null.
- Create a goods shipment using "create lines from" of lines of the sales order, and set a lot present in stock.
- Complete the shipment.
- See that the new reservation has been created and released, but the pre-reservation has not been cleared, leaving the reservation in a non consistent status.
Change the following line (line 164) in M_RESERVATION_CONSUMPTION stored procedure:

AND (m_attributesetinstance_id != p_attributesetinstance_id OR m_locator_id != p_locator_id)

and replace by:

AND ((m_attributesetinstance_id != p_attributesetinstance_id OR m_attributesetinstance_id is null) OR m_locator_id != p_locator_id)
No tags attached.
Issue History
2013-06-10 18:20umartirenaNew Issue
2013-06-10 18:20umartirenaAssigned To => jonalegriaesarte
2013-06-10 18:20umartirenaModules => Core
2013-06-10 18:20umartirenaTriggers an Emergency Pack => No
2013-06-12 19:46jonalegriaesarteTarget Version => 3.0MP25
2013-06-18 18:34jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2013-06-18 22:44hgbotCheckin
2013-06-18 22:44hgbotNote Added: 0059508
2013-06-18 22:44hgbotStatusnew => resolved
2013-06-18 22:44hgbotResolutionopen => fixed
2013-06-18 22:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b8b7ab9166a7bdd9eab5b360483150d20c5a3976 [^]
2013-06-20 02:08hudsonbotCheckin
2013-06-20 02:08hudsonbotNote Added: 0059589
2013-06-26 12:27jonalegriaesarteReview Assigned To => jonalegriaesarte
2013-06-26 12:27jonalegriaesarteNote Added: 0059675
2013-06-26 12:27jonalegriaesarteStatusresolved => closed
2013-06-26 12:27jonalegriaesarteFixed in Version => 3.0MP25

Notes
(0059508)
hgbot   
2013-06-18 22:44   
Repository: erp/devel/pi
Changeset: b8b7ab9166a7bdd9eab5b360483150d20c5a3976
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Tue Jun 18 22:44:40 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b8b7ab9166a7bdd9eab5b360483150d20c5a3976 [^]

Fixes issue 24035: Posting Good shipment pre-reservation not cleared

---
M src-db/database/model/functions/M_RESERVATION_CONSUMPTION.xml
---
(0059589)
hudsonbot   
2013-06-20 02:08   
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/5caf871044ad [^]

Maturity status: Test
(0059675)
jonalegriaesarte   
2013-06-26 12:27   
Tested in customer side and it is working fine.