Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013926Openbravo ERP03. Procurement managementpublic2010-07-08 23:142010-07-16 00:00
networkb 
harikrishnan 
immediatemajoralways
closedfixed 
5
2.50MP18 
2.50MP20 
Core
No
0013926: Quantity ordered duplicated
When 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.
- 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.
In C_ORder Post, if docStatus = 'Under Way' don't call M_STORAGE_PENDING_UPDATE
No tags attached.
Issue History
2010-07-08 23:14networkbNew Issue
2010-07-08 23:14networkbAssigned To => adrianromero
2010-07-09 11:52adrianromeroStatusnew => scheduled
2010-07-09 11:52adrianromerofix_in_branch => pi
2010-07-14 12:54harikrishnanAssigned Toadrianromero => harikrishnan
2010-07-14 12:56hgbotCheckin
2010-07-14 12:56hgbotNote Added: 0029308
2010-07-14 12:56hgbotStatusscheduled => resolved
2010-07-14 12:56hgbotResolutionopen => fixed
2010-07-14 12:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/99818017822d2cc2859a6b25edeabf173a09102a [^]
2010-07-14 12:57harikrishnanNote Added: 0029309
2010-07-15 08:57sureshbabuNote Added: 0029322
2010-07-15 08:57sureshbabuStatusresolved => closed
2010-07-15 09:05sureshbabuNote Edited: 0029322bug_revision_view_page.php?bugnote_id=0029322#r582
2010-07-15 10:18hudsonbotCheckin
2010-07-15 10:18hudsonbotNote Added: 0029330
2010-07-16 00:00anonymoussf_bug_id0 => 3030270

Notes
(0029308)
hgbot   
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   
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   
2010-07-15 08:57   
(edited on: 2010-07-15 09:05)
Issue is rightly fixed

(0029330)
hudsonbot   
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 [^]