Openbravo Issue Tracking System - Modules
View Issue Details
0038991ModulesAdvanced Warehouse Operationspublic2018-07-19 12:202018-09-24 10:00
dmiguelez 
dmiguelez 
normalminoralways
closedfixed 
5
 
 
guilleaer
0038991: Do not log unnecessary exceptions in Errors While Processing Tasks Window
Do not log unnecessary exceptions in Errors While Processing Tasks Window.

There are some expected exceptions that should not be logged in this Window, because the user does not need to perform further actions:
  - Error when there is no Task to Confirm in a Group of Tasks
  - Error when a confirmed Task is being updated
  - Error when trying to process a confirmed Task

This exceptions should be handled but not logged in this window.
With AWO and AWO SampleData installed

Log in as AWO QA Admin

Go to Purchase Order Window and create a new record with:
  - Organization: US West Coast
  - Business Partner: Be Soft Drinker
  - Warehouse: US West Coast
Move to Lines Tab and create a new record with:
  - Product: Ale Beer
  - Operative Quantity: 10
Book the document

Click on Receive button and assign the Task to Openbravo. Click on Done.

Now it is necessary to open a new Tab in Front End mode and have both BE and FE open at the same time.
In FE the Task should be shown.

In BE, move to Task tab under the Lines and click on Confirm and done.

In the FE click on confirm.
A pop up shows noticing that an exception has happened.

In the Backend, there is an entry in the Errors While Processing Tasks window related to this Task.

This should not happen, this error should not be logged in this window.
No tags attached.
diff 38991ProposedSolution.diff (4,104) 2018-07-19 12:21
https://issues.openbravo.com/file_download.php?file_id=11978&type=bug
Issue History
2018-07-19 12:20dmiguelezNew Issue
2018-07-19 12:20dmiguelezAssigned To => dmiguelez
2018-07-19 12:21dmiguelezFile Added: 38991ProposedSolution.diff
2018-07-25 09:36VictorVillarResolution time => 1535666400
2018-08-06 14:25SandrahuguetResolution time1535666400 =>
2018-08-14 10:28VictorVillarResolution time => 1535666400
2018-09-07 14:42guilleaerNote Added: 0106642
2018-09-07 14:43guilleaerNote Edited: 0106642bug_revision_view_page.php?bugnote_id=0106642#r17611
2018-09-17 17:15hgbotCheckin
2018-09-17 17:15hgbotNote Added: 0106813
2018-09-17 17:15hgbotStatusnew => resolved
2018-09-17 17:15hgbotResolutionopen => fixed
2018-09-17 17:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/a777a2e3e4fe67ed6c93208492070157ca915357 [^]
2018-09-17 17:15hgbotCheckin
2018-09-17 17:15hgbotNote Added: 0106814
2018-09-17 17:15hgbotCheckin
2018-09-17 17:15hgbotNote Added: 0106815
2018-09-17 17:16dmiguelezReview Assigned To => guilleaer
2018-09-17 18:51hgbotCheckin
2018-09-17 18:51hgbotNote Added: 0106820
2018-09-18 10:17hgbotCheckin
2018-09-18 10:17hgbotNote Added: 0106828
2018-09-18 10:17hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/a777a2e3e4fe67ed6c93208492070157ca915357 [^] => http://code.openbravo.com/retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations/rev/e873fc39b8cc01e0a460c393fa038d32e1462048 [^]
2018-09-18 10:17hgbotCheckin
2018-09-18 10:17hgbotNote Added: 0106829
2018-09-18 10:17hgbotCheckin
2018-09-18 10:17hgbotNote Added: 0106830
2018-09-18 10:17hgbotCheckin
2018-09-18 10:17hgbotNote Added: 0106831
2018-09-24 09:59hgbotCheckin
2018-09-24 09:59hgbotNote Added: 0106948
2018-09-24 10:00hgbotCheckin
2018-09-24 10:00hgbotNote Added: 0106949
2018-09-24 10:00guilleaerStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0106642)
guilleaer   
2018-09-07 14:42   
(edited on: 2018-09-07 14:43)
After the fix of issue 39039 errors which comes from OBException are saved in error while importing with the flag BLOCKS = false.

Only errors which make sense to be shown to the user should be saved in errors while importing. Those which blocks the task should have the flag BLOCKS = true and those who just want to inform with BLOCKS = false

Ex:
Delta generation problem -> User should see the error, but the task should not be blocked

Problem confirming task because an stock issue -> User should see the error and the task should be blocked

Task already confirmed -> should not be saved, neither shown to the user.

(0106813)
hgbot   
2018-09-17 17:15   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: a777a2e3e4fe67ed6c93208492070157ca915357
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 17 12:20:18 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/a777a2e3e4fe67ed6c93208492070157ca915357 [^]

Fixes Issue 38991. Allow to decide if an exception is going to be
saved and if it is going to block the current Task

* Added two flags in OBAWOExcpetion class, Blocks and Save
  This flags allows to state if the exception will be saved
  and, if so, if it will block the current Task until the
  exception is fixed
* Changed OBException with OBAWOException for
  - Exception when Group of Tasks does not have any Task to process
  - Not possible to update Task because it is already processed
* Save OBAWOException with no Blocks flag for
  - Delta Management exception
  - Trying to confirm an already confirmed Task

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/DeltaManagerDifferent.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/GroupOfTasksConfirmator.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/eventobserver/TaskEventObserver.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/processors/TaskProcessor.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/utils/OBAWOException.java
---
(0106814)
hgbot   
2018-09-17 17:15   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 222efbc4e293d03c8bc03caf6fb600dc7810a6fd
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 17 16:15:15 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/222efbc4e293d03c8bc03caf6fb600dc7810a6fd [^]

Related to Issue 38991. Refactor of method to reduce
cognitive complexity.

* Split method into smaller ones
* Remove clutter
* Add final modifiers to variables
* Set proper names
* Add missing Override annotation

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
---
(0106815)
hgbot   
2018-09-17 17:15   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 8d00a13b2f6bc1e6357ef7b9ca4eb70f0805abe3
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 17 16:48:22 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/8d00a13b2f6bc1e6357ef7b9ca4eb70f0805abe3 [^]

Related to Issue 38991. Fix casting to OBAWOException

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
---
(0106820)
hgbot   
2018-09-17 18:51   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 1ae17678d0ed6fc784d6d250f935f6c951788278
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Sep 17 18:50:37 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/1ae17678d0ed6fc784d6d250f935f6c951788278 [^]

Related to issue 38991: Fix some small errors related to error management

* Add picking list columns (now grouping can come also from picking)
* Fix some typos
* Fix error when grouping document is retrieved from db

---
M src-db/database/model/tables/OBAWO_ERRORS.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_TABLE.xml
M src-db/database/sourcedata/AD_TAB.xml
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/processors/ReceptionListProcessor.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
---
(0106828)
hgbot   
2018-09-18 10:17   
Repository: retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: e873fc39b8cc01e0a460c393fa038d32e1462048
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 17 12:20:18 2018 +0200
URL: http://code.openbravo.com/retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations/rev/e873fc39b8cc01e0a460c393fa038d32e1462048 [^]

Fixes Issue 38991. Allow to decide if an exception is going to be
saved and if it is going to block the current Task

* Added two flags in OBAWOExcpetion class, Blocks and Save
  This flags allows to state if the exception will be saved
  and, if so, if it will block the current Task until the
  exception is fixed
* Changed OBException with OBAWOException for
  - Exception when Group of Tasks does not have any Task to process
  - Not possible to update Task because it is already processed
* Save OBAWOException with no Blocks flag for
  - Delta Management exception
  - Trying to confirm an already confirmed Task

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/DeltaManagerDifferent.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/GroupOfTasksConfirmator.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/eventobserver/TaskEventObserver.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/processors/TaskProcessor.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/utils/OBAWOException.java
---
(0106829)
hgbot   
2018-09-18 10:17   
Repository: retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: a1e849c1188997b327789eb57fb1f817ba9dff65
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 17 16:15:15 2018 +0200
URL: http://code.openbravo.com/retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations/rev/a1e849c1188997b327789eb57fb1f817ba9dff65 [^]

Related to Issue 38991. Refactor of method to reduce
cognitive complexity.

* Split method into smaller ones
* Remove clutter
* Add final modifiers to variables
* Set proper names
* Add missing Override annotation

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
---
(0106830)
hgbot   
2018-09-18 10:17   
Repository: retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: b80178ebc96a593b5a8e3ff98a40954a206a8f35
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 17 16:48:22 2018 +0200
URL: http://code.openbravo.com/retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations/rev/b80178ebc96a593b5a8e3ff98a40954a206a8f35 [^]

Related to Issue 38991. Fix casting to OBAWOException

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
---
(0106831)
hgbot   
2018-09-18 10:17   
Repository: retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 296b88f1dca498d8905ae847d250c0c0ee2e6341
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Sep 17 18:50:37 2018 +0200
URL: http://code.openbravo.com/retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations/rev/296b88f1dca498d8905ae847d250c0c0ee2e6341 [^]

Related to issue 38991: Fix some small errors related to error management

* Add picking list columns (now grouping can come also from picking)
* Fix some typos
* Fix error when grouping document is retrieved from db

---
M src-db/database/model/tables/OBAWO_ERRORS.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_TABLE.xml
M src-db/database/sourcedata/AD_TAB.xml
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/processors/ReceptionListProcessor.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/mobile/sync/AWODataSynchronizationErrorHandler.java
---
(0106948)
hgbot   
2018-09-24 09:59   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: bb6b986d9e405da62a9529784b2f92b88b6e012f
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Sep 24 09:58:20 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/bb6b986d9e405da62a9529784b2f92b88b6e012f [^]

Related to issue 38991: Child task error should not be removed individually

---
M src-db/database/sourcedata/AD_TABLE.xml
---
(0106949)
hgbot   
2018-09-24 10:00   
Repository: retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 224b7e2eaae9291ebdfabb4bd224f97beb0d0e46
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Sep 24 09:58:20 2018 +0200
URL: http://code.openbravo.com/retail/backports/AWO/3.0RR18Q3/org.openbravo.warehouse.advancedwarehouseoperations/rev/224b7e2eaae9291ebdfabb4bd224f97beb0d0e46 [^]

Related to issue 38991: Child task error should not be removed individually

---
M src-db/database/sourcedata/AD_TABLE.xml
---