Openbravo Issue Tracking System - Modules
View Issue Details
0037591ModulesAdvanced Warehouse Operationspublic2018-01-05 14:192018-02-06 18:32
ngarcia 
guilleaer 
urgentmajoralways
closedfixed 
5
 
 
marvintm
0037591: [AWOFE] Cannot process a task if a new value is set for an attribute in Picking task
[AWOFE] Cannot process a task if a new value is set for an attribute in Picking task

When a product is received without a value in an attribute that belongs to an attribute set a new entry is created in m_attributeinstance table with value = null.

Then, when we assign a value to the attribute in the picking process, in OBAWOMobileUtils.updateAttributeSetInstance function, a NullPointerException is launched in the following line:

   if (!foundAttInstance.getSearchKey().equals(attValue)) {

- Having an attribute set which includes a not mandatory instance attribute
- Receive stock of a product with an empty value in the attribute
- Create a sales order for that product
- In the front end, open Pick menu entry, select the previously created sales order and generate task
- Edit the task and add a value for the attribute

- Check the task goes to Errors while processing tasks with the following error:
org.openbravo.base.exception.OBException: Unexpected exception processing task: null
    at org.openbravo.warehouse.advancedwarehouseoperations.mobile.processors.TaskProcessor.exec(TaskProcessor.java:48)
    at org.openbravo.warehouse.advancedwarehouseoperations.mobile.sync.TaskLoader.saveRecord(TaskLoader.java:43)
    at org.openbravo.warehouse.advancedwarehouseoperations.mobile.sync.AWOOnlineTaskSynchronizer.exec(AWOOnlineTaskSynchronizer.java:82)...

  
No tags attached.
Issue History
2018-01-05 14:19ngarciaNew Issue
2018-01-05 14:19ngarciaAssigned To => dmiguelez
2018-01-05 14:20ngarciaIssue Monitored: networkb
2018-01-05 14:27dmiguelezAssigned Todmiguelez => guilleaer
2018-01-09 16:44ngarciaResolution time => 1517266800
2018-01-15 13:10maiteIssue Monitored: maite
2018-01-15 16:16hgbotCheckin
2018-01-15 16:16hgbotNote Added: 0101698
2018-01-15 16:16hgbotStatusnew => resolved
2018-01-15 16:16hgbotResolutionopen => fixed
2018-01-15 16:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/86ad6f1d89f8ebf4d21f65f4eaa399e9dd186a57 [^]
2018-01-15 16:24hgbotCheckin
2018-01-15 16:24hgbotNote Added: 0101701
2018-02-06 18:32marvintmReview Assigned To => marvintm
2018-02-06 18:32marvintmStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0101698)
hgbot   
2018-01-15 16:16   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 86ad6f1d89f8ebf4d21f65f4eaa399e9dd186a57
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Jan 15 16:16:34 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/86ad6f1d89f8ebf4d21f65f4eaa399e9dd186a57 [^]

Fixed issue 37591: Pick with not mandatory attributes is working fine

- The problem happened trying to change an attribute which was created with null value.
- When attribute is going to be modified, first we will check if the value is null before compare it with the new value

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/OBAWOMobileUtils.java
---
(0101701)
hgbot   
2018-01-15 16:24   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 22c66e8d3b29d12077b0d3250976462390f63bd6
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Jan 15 16:24:06 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/22c66e8d3b29d12077b0d3250976462390f63bd6 [^]

Related to issue 37591: update license year

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/OBAWOMobileUtils.java
---