Openbravo Issue Tracking System - Modules
View Issue Details
0037722ModulesAdvanced Warehouse Operationspublic2018-01-25 11:582018-02-06 18:55
guilleaer 
guilleaer 
normalminorhave not tried
closedfixed 
5
 
 
marvintm
0037722: [AWO FE] Priority of grouped tasks is not calculated correctly
The order used by AWOFE to show task is the priority. Priority is part of the task, but in the case of grouped tasks the priority of the line which represents the group of tasks is calculated getting the max priority of all of those tasks that belongs to the group.

This is fine but we are not taking into account that not all the task of a group can belong to the same user, so this function to retrieve the max should also take into account the user which is doing the request.
Create a purchase order with 2 lines
line 1 -> qty 2
line 2 -> qty 5
Create receipt tasks assigned to AWO_US_W
Go to teh tasks and for task related to qty 5 set priority to 9999

Go to mobile app
One group of task is there
Using developer tools check that priority for group is 9999

Go to backend, unassign task related to line with qty 5
return to frontend
refresh tasks
priority is still 9999 but it should be 100 which is the priority of the onlu task assigned to the current user
No tags attached.
Issue History
2018-01-25 11:58guilleaerNew Issue
2018-01-25 11:58guilleaerAssigned To => guilleaer
2018-01-25 12:02hgbotCheckin
2018-01-25 12:02hgbotNote Added: 0101938
2018-01-25 12:02hgbotStatusnew => resolved
2018-01-25 12:02hgbotResolutionopen => fixed
2018-01-25 12:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/efdc2d815710ba730e85abb6edea705df6c03c59 [^]
2018-02-06 18:55marvintmReview Assigned To => marvintm
2018-02-06 18:55marvintmStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0101938)
hgbot   
2018-01-25 12:02   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: efdc2d815710ba730e85abb6edea705df6c03c59
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Jan 25 12:01:49 2018 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/efdc2d815710ba730e85abb6edea705df6c03c59 [^]

Fixed issue 37722: Priority calculation for grouped task is using current user

---
M src-db/database/model/functions/OBAWO_GETCHILDTASKMAXPRIORITY.xml
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/datasources/TaskProperties.java
---