Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020288Openbravo ERP04. Warehouse managementpublic2012-04-17 17:132012-04-25 18:36
dmiguelez 
dmiguelez 
normalmajoralways
closedfixed 
20Community Appliance
pi 
 
Core
No
0020288: A Storage Bin having Products can be deactivated.
The application is allowing to deactivate a storage bin with products wihtin
Login as Openbravo/openbravo

Go to Warehouse and Storage Bins.
Select the one with search key: EC
Move to Storage Bin tab.
Select the one with search key: ECC-0-0-0
Move to Bin Contents tab.
Realize that is not empty.
Move back to Storage Bin tab and edit the previously selected row.
Deactivate it and realize that it is possible.
Two possible solutions:

Do not allow to deactivate a Storage Bin with products within (two options):
  - Create a trigger to prevent it.
  - or Create an Event instead of a trigger.

Show a warning message. Create a callout for this.
No tags attached.
related to defect 0020082 closed dmiguelez Goods Shipment is created with inactive storage bin 
related to defect 0020341 closed dmiguelez A Warehouse with Storage Bin with products or with pending movements can be deactivated 
Issue History
2012-04-17 17:13dmiguelezNew Issue
2012-04-17 17:13dmiguelezAssigned To => dmiguelez
2012-04-17 17:13dmiguelezModules => Core
2012-04-17 17:13dmiguelezStatusnew => acknowledged
2012-04-17 17:13dmiguelezStatusacknowledged => scheduled
2012-04-17 17:13dmiguelezfix_in_branch => pi
2012-04-17 17:20dmiguelezRelationship addedrelated to 0020082
2012-04-19 16:56dmiguelezNote Added: 0047757
2012-04-24 18:38dmiguelezNote Edited: 0047757bug_revision_view_page.php?bugnote_id=0047757#r3393
2012-04-24 18:40dmiguelezRelationship addedrelated to 0020341
2012-04-24 18:42dmiguelezNote Edited: 0047757bug_revision_view_page.php?bugnote_id=0047757#r3396
2012-04-25 18:35miruritaStatusscheduled => resolved
2012-04-25 18:35miruritaFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/72795668d074ac2ffbcca837323de5e34cc9b889 [^]
2012-04-25 18:35miruritaResolutionopen => fixed
2012-04-25 18:36miruritaNote Added: 0047980
2012-04-25 18:36miruritaStatusresolved => closed

Notes
(0047757)
dmiguelez   
2012-04-19 16:56   
(edited on: 2012-04-24 18:42)
Test Plan:

Login as Openbravo/openbravo

Go to Warehouse and Storage Bins.
Select the one with search key: EC
Move to Storage Bin tab.
Select the one with search key: ECC-0-0-0
Move to Bin Contents tab.
Realize that is not empty.

Move back to Storage Bin tab and edit the previously selected row.
Deactivate it and realize that a message is shown noticing that the Storage Bin is not empty.

Deactivate all Storage Bins except ECC-0-0-0.
Try to deactivate it and realize that a message appears.

(0047980)
mirurita   
2012-04-25 18:36   
code review + testing OK