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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013926
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 03. Procurement managementmajoralways2010-07-08 23:142010-07-16 00:00
ReporternetworkbView Statuspublic 
Assigned Toharikrishnan 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision99818017822d
ProjectionnoneETAnoneTarget Version2.50MP20
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product Version2.50MP18SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0013926: Quantity ordered duplicated

DescriptionWhen Process a purchase Order (from Draft to Under Way) the Quantity ordered on m_storage_pending is updated:

Old_qty_ordered + New_qty_ordered = Qty_updated
100 + 20 = 120

And when complete (from Under Way to Complete) the Quantity ordered is updated again, so:

Qty_updated = Old_Qty_updated + New_qty_ordered
140 = 120 + 20

That is not correct because the purchase order is the same, with the same quantity not with the double qty ordered.
Steps To Reproduce- Create a purchase Order (PO1)
- Create a line por product 1 qty=10
- See the column Qty ordered on product selector
- Complete the order and select Process instead of Complete.
- Create another Purchase Order and notice that the quantity ordered in the selectar has increased 10 units. (PO2)
- Complete the PO1 and go again to the selector Product in PO2 and notice that the qty ordered has increased 10 units again.
Proposed SolutionIn C_ORder Post, if docStatus = 'Under Way' don't call M_STORAGE_PENDING_UPDATE
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0029308)
hgbot (developer)
2010-07-14 12:56

Repository: erp/devel/pi
Changeset: 99818017822d2cc2859a6b25edeabf173a09102a
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Wed Jul 14 16:26:00 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/99818017822d2cc2859a6b25edeabf173a09102a [^]

Fixes Issue 13926: Quantity ordered duplicated

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0029309)
harikrishnan (reporter)
2010-07-14 12:57

Steps to test:

*Create a purchase order header and line chose any product and note down the product.
*Check these condition
1)From Draft to Complete
2)Draft to underway to Complete
*In the second condition the product quantity will be updated only from draft to underway.

Root Cause:

*Before there is no condition is checked for this method.It ll be inserted to all the conditions.

Impact:

Their is no impact because of this change set.
(0029322)
sureshbabu (reporter)
2010-07-15 08:57
edited on: 2010-07-15 09:05

Issue is rightly fixed

(0029330)
hudsonbot (developer)
2010-07-15 10:18

A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/99818017822d [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/33fb2a504aa2 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17884.obx [^]

- Issue History
Date Modified Username Field Change
2010-07-08 23:14 networkb New Issue
2010-07-08 23:14 networkb Assigned To => adrianromero
2010-07-09 11:52 adrianromero Status new => scheduled
2010-07-09 11:52 adrianromero fix_in_branch => pi
2010-07-14 12:54 harikrishnan Assigned To adrianromero => harikrishnan
2010-07-14 12:56 hgbot Checkin
2010-07-14 12:56 hgbot Note Added: 0029308
2010-07-14 12:56 hgbot Status scheduled => resolved
2010-07-14 12:56 hgbot Resolution open => fixed
2010-07-14 12:56 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/99818017822d2cc2859a6b25edeabf173a09102a [^]
2010-07-14 12:57 harikrishnan Note Added: 0029309
2010-07-15 08:57 sureshbabu Note Added: 0029322
2010-07-15 08:57 sureshbabu Status resolved => closed
2010-07-15 09:05 sureshbabu Note Edited: 0029322 View Revisions
2010-07-15 10:18 hudsonbot Checkin
2010-07-15 10:18 hudsonbot Note Added: 0029330
2010-07-16 00:00 anonymous sf_bug_id 0 => 3030270


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker