Openbravo Issue Tracking System - Modules
View Issue Details
0037994ModulesAdvanced Warehouse Operationspublic2018-02-22 20:202018-02-23 11:26
collazoandy4 
collazoandy4 
normalmajoralways
closedfixed 
5
 
 
dmiguelez
0037994: NPE when changing the Inventory Status of a stock with a product with attribute set
When a stock with a product with attribute set, change the Inventory Status a NPE is raise
Create a Purchase Order with a product with attribute set
Create a receipt task and confirm it
Go to Advance Warehouse Operation window and change the inventory status of a Line, Check a NPE is raice in the process and the bin status was change
No tags attached.
Issue History
2018-02-22 20:20collazoandy4New Issue
2018-02-22 20:20collazoandy4Assigned To => collazoandy4
2018-02-22 20:23collazoandy4Statusnew => scheduled
2018-02-22 20:29collazoandy4Reproducibilityhave not tried => always
2018-02-23 10:30dmiguelezNote Added: 0102812
2018-02-23 11:11hgbotCheckin
2018-02-23 11:11hgbotNote Added: 0102814
2018-02-23 11:11hgbotCheckin
2018-02-23 11:11hgbotNote Added: 0102815
2018-02-23 11:11hgbotStatusscheduled => resolved
2018-02-23 11:11hgbotResolutionopen => fixed
2018-02-23 11:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/49dee23afbd08aabaf2e4bd1f811c447c5cd104d [^]
2018-02-23 11:11hgbotCheckin
2018-02-23 11:11hgbotNote Added: 0102816
2018-02-23 11:17hgbotCheckin
2018-02-23 11:17hgbotNote Added: 0102817
2018-02-23 11:26dmiguelezReview Assigned To => dmiguelez
2018-02-23 11:26dmiguelezNote Added: 0102824
2018-02-23 11:26dmiguelezStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0102812)
dmiguelez   
2018-02-23 10:30   
Test Plan:

With AWO SampleData Module installed.

Log in as AWO-QA Admin
Go to Warehouse Operations Window

Select any row with a Product with attribute values, like Cellphone Battery.
Try to change it's Status to different ones (Available, Backflush, Blocked...)
It should work without any issues.
(0102814)
hgbot   
2018-02-23 11:11   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: ec724a8df8f23bde651fbd2a988b1ef21eba1c4c
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Thu Feb 22 18:18:22 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/ec724a8df8f23bde651fbd2a988b1ef21eba1c4c [^]

Related to issue 37994:Test modified to take into account the attributeset flow

---
M src-test/org/openbravo/warehouse/advancedwarehouseoperations/test/AWOh_InventoryStatusWithAWOEnabled.java
---
(0102815)
hgbot   
2018-02-23 11:11   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 49dee23afbd08aabaf2e4bd1f811c447c5cd104d
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Feb 23 10:18:25 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/49dee23afbd08aabaf2e4bd1f811c447c5cd104d [^]

Fixes issue 37994. When the Product has an attribute, it's entry in the
Storage Detail is deleted when the Stock reaches 0. That is why it is necessary
to keep track of the Locators that have been selected instead of trying to
retrieve them from the Storage Detail

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/utils/Utilities.java
---
(0102816)
hgbot   
2018-02-23 11:11   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: b9a15647f0ba7ed27ead3c79b8f1d2238c12818d
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Feb 23 10:25:26 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/b9a15647f0ba7ed27ead3c79b8f1d2238c12818d [^]

Related to issue 37994. Code Review changes.

Changed some names and ordering of the code to make it
easier to read.

---
M src-test/org/openbravo/warehouse/advancedwarehouseoperations/test/AWOh_InventoryStatusWithAWOEnabled.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/utils/Utilities.java
---
(0102817)
hgbot   
2018-02-23 11:17   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: d5bb2c4a0a805ae99c5261c1e060cab2446c33fb
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Feb 23 11:17:20 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/d5bb2c4a0a805ae99c5261c1e060cab2446c33fb [^]

Related to issue 37994. Updated module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0102824)
dmiguelez   
2018-02-23 11:26   
Code Review + Testing Ok