Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0024035
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementmajoralways2013-06-10 18:202013-06-26 12:27
ReporterumartirenaView Statuspublic 
Assigned Tojecharri 
PriorityurgentResolutionfixedFixed in Version3.0MP25
StatusclosedFix in branchFixed in SCM revisionb8b7ab9166a7
ProjectionnoneETAnoneTarget Version3.0MP25
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tojonalegriaesarte
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0024035: Posting Good shipment pre-reservation not cleared.

DescriptionWhile 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.
Steps To Reproduce- 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.
Proposed SolutionChange 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)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0059508)
hgbot (developer)
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 (developer)
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 (reporter)
2013-06-26 12:27

Tested in customer side and it is working fine.

- Issue History
Date Modified Username Field Change
2013-06-10 18:20 umartirena New Issue
2013-06-10 18:20 umartirena Assigned To => jonalegriaesarte
2013-06-10 18:20 umartirena Modules => Core
2013-06-10 18:20 umartirena Triggers an Emergency Pack => No
2013-06-12 19:46 jonalegriaesarte Target Version => 3.0MP25
2013-06-18 18:34 jonalegriaesarte Assigned To jonalegriaesarte => jecharri
2013-06-18 22:44 hgbot Checkin
2013-06-18 22:44 hgbot Note Added: 0059508
2013-06-18 22:44 hgbot Status new => resolved
2013-06-18 22:44 hgbot Resolution open => fixed
2013-06-18 22:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b8b7ab9166a7bdd9eab5b360483150d20c5a3976 [^]
2013-06-20 02:08 hudsonbot Checkin
2013-06-20 02:08 hudsonbot Note Added: 0059589
2013-06-26 12:27 jonalegriaesarte Review Assigned To => jonalegriaesarte
2013-06-26 12:27 jonalegriaesarte Note Added: 0059675
2013-06-26 12:27 jonalegriaesarte Status resolved => closed
2013-06-26 12:27 jonalegriaesarte Fixed in Version => 3.0MP25


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker