Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009119Openbravo ERPZ. Otherspublic2009-05-20 19:382009-06-01 07:18
networkb 
gorkaion 
immediatemajoralways
closedfixed 
20rPath Linux
2.35MP10 
2.35MP13 
Core
No
0009119: It is not possible to deactivate a product which has an ordered quantity of zero
If we have a product which is related to a certain sales
order or purchase order it is not possible to deactivate it.

When we change the ordered quantity field to zero in the lines of a sales order or purchase order, the QTYRESERVED column should be automatically updated to zero in order to update the M_STORAGE_PENDING table.

This is not done, so, it is not possible to DEACTIVATE this product.
The steps to reproduce this issue are:

*Sales Management or Procurement Managenet/Sales Order:
- Create a new SO/PO and in its' lines select a product and an Ordered Quantity, save and complete. You will see the new value in QTYRESERVED column of the M_STORAGE_PENDING table.
- Reactivate the order and in the lines change the Ordered Quantity to zero, save and complete. The QTYRESERVED column of the M_STORAGE_PENDING table must change to zero, it isn't changed. The previous value remain.

*Master Data Management/Product
- Try to deactivate the product, it is not possible (red message: cannot deactivate the product because it has inventory).
No tags attached.
blocks defect 0006912 closed gorkaion It is not possible to deactivate a product which has an ordered quantity of zero. 
Issue History
2009-05-20 19:38networkbNew Issue
2009-05-20 19:38networkbAssigned To => rafaroda
2009-05-20 19:38networkbRegression testing => No
2009-05-21 10:56rafarodaAssigned Torafaroda => gorkaion
2009-05-21 10:56rafarodaStatusnew => scheduled
2009-05-21 10:56rafarodaTypedefect => backport
2009-05-21 10:56rafarodafix_in_branch => 2.3x
2009-05-21 10:56rafarodaSummaryIt is not possible to deactivate a product which has an ordered quantity of zero in 2.35 version (related to issue 6912 ) => It is not possible to deactivate a product which has an ordered quantity of zero
2009-05-21 10:56rafarodaDescription Updated
2009-05-21 10:56rafarodaProposed Solution updated
2009-05-21 10:56rafarodaRelationship addedrelated to 0006912
2009-05-21 10:57rafarodaRelationship replacedblocks 0006912
2009-05-22 16:39hgbotCheckin
2009-05-22 16:39hgbotNote Added: 0016591
2009-05-22 16:39hgbotStatusscheduled => resolved
2009-05-22 16:39hgbotResolutionopen => fixed
2009-05-22 16:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.3x/rev/2e1e60273c9a03bcbd4d1adb1656886056ff67f5 [^]
2009-06-01 07:18sureshbabuStatusresolved => closed
2009-06-01 07:18sureshbabuNote Added: 0016782
2009-06-01 07:18sureshbabuFixed in Version => 2.35MP13

Notes
(0016591)
hgbot   
2009-05-22 16:39   
Repository: erp/stable/2.3x
Changeset: 2e1e60273c9a03bcbd4d1adb1656886056ff67f5
Author: Gorka Ion Damián <gorkaion.damian <at> openbravo.com>
Date: Fri May 22 16:39:08 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.3x/rev/2e1e60273c9a03bcbd4d1adb1656886056ff67f5 [^]

Fixed bug 9119.Applied patch of issue 6912.

---
M database/model/functions/C_ORDER_POST1.xml
---
(0016782)
sureshbabu   
2009-06-01 07:18   
Tested working fine