Openbravo Issue Tracking System - Modules
View Issue Details
0037356ModulesAdvanced Warehouse Operationspublic2017-11-22 11:412017-12-12 14:01
dmiguelez 
AtulOpenbravo 
normalmajoralways
closedfixed 
5
 
 
vmromanos
0037356: Log beautifier is not working
Log beautifier is not working
Login as AWO-QA Admin

Go to Warehouse Verbosity Configuration and create a new record with emtpy User/Contact and no starting and ending date

Go to Sales Order window and create a new record with:
  * Organization: US
  * BusinessPartner: Healthy Food Supermarkets
  * Warehouse: US West Coast
Move to Lines tab and create a new record with:
  * Product: Ale Beer
  * Operative Quantity: 5
Book the Sales Order
Click on Pick button and launch the picking process

Go to Warehouse Verbosity Log and select the last record created.
Click on Beautify Log button and realize that a new tab is opened with no content
No tags attached.
Issue History
2017-11-22 11:41dmiguelezNew Issue
2017-11-22 11:41dmiguelezAssigned To => dmiguelez
2017-11-27 12:07dmiguelezSeverityminor => major
2017-11-30 18:42dmiguelezAssigned Todmiguelez => AtulOpenbravo
2017-12-01 13:16AtulOpenbravoStatusnew => scheduled
2017-12-08 10:41AtulOpenbravoNote Added: 0100947
2017-12-12 13:57hgbotCheckin
2017-12-12 13:57hgbotNote Added: 0100983
2017-12-12 13:57hgbotStatusscheduled => resolved
2017-12-12 13:57hgbotResolutionopen => fixed
2017-12-12 13:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/6c6ee128cec00824f65f637509045dc8fec5dd56 [^]
2017-12-12 13:57hgbotCheckin
2017-12-12 13:57hgbotNote Added: 0100984
2017-12-12 13:57hgbotCheckin
2017-12-12 13:57hgbotNote Added: 0100985
2017-12-12 13:57hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/6c6ee128cec00824f65f637509045dc8fec5dd56 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/432af9552baaaad20781a70e84fad69be07c32cb [^]
2017-12-12 14:01vmromanosReview Assigned To => vmromanos
2017-12-12 14:01vmromanosNote Added: 0100987
2017-12-12 14:01vmromanosStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0100947)
AtulOpenbravo   
2017-12-08 10:41   
- Login as AWO-QA Admin

- Go to Warehouse Verbosity Configuration and create a new record with emtpy User/Contact and no starting and ending date, Level = INFO

- Go to Sales Order window and create a new record with:
  * Organization: US
  * BusinessPartner: Healthy Food Supermarkets
  * Transaction Document: Standard Order
  * Warehouse: US West Coast
- Move to Lines tab and create a new record with:
  * Product: Ale Beer
  * Operative Quantity: 5
Book the Sales Order
- Click on Pick button and launch the picking process. Realize that success message is shown as
  Process completed successfully
  1 task(s) created successfully [Batch of Tasks document no. 1000296].
  Picking list AWOPLST1000107 created successfully.
- Again Click on Pick button and launch picking process. Realize that error message is shown as
   Error:
   No Picking List document was created.
- Go to Warehouse Verbosity Log and select the last record created.
Click on Beautify Log button and realize that a new tab is opened with content as

* AWO flows are granted for Organization [US]
* Detected Inventory Transaction Type [Picking Sales Order]
* Calculate Task Requirements for the sales order picking [Sales Order - 1000012 - 04-12-2017 - Healthy Food Supermarkets, Co.]
* Analyze sales order line [1000012 - 20 - Discount 10% - 1Ud - - ] to create a task requirement...
* Skipping order line [1000012 - 20 - Discount 10% - 1Ud - - ] because Product is not defined as Item and Stockable
* Finished analyze sales order line [1000012 - 20 - Discount 10% - 1Ud - - ] in order to create a task requirement.
* Analyze sales order line [1000012 - 10 - Ale Beer - 5Ud - 5Ud - ] to create a task requirement...
* Quantity ordered [5]; Quantity detected in previous picking tasks [5]; Quantity in standalone issue tasks [0]; Quantity pending to generate task [0]
* There is no need to create a task requirement for this line
* Finished analyze sales order line [1000012 - 10 - Ale Beer - 5Ud - 5Ud - ] in order to create a task requirement.
* Finished calculate Task Requirements for the sales order picking [Sales Order - 1000012 - 04-12-2017 - Healthy Food Supermarkets, Co.]
* No tasks were generated.
* Error detected in Central Broker: No Picking List document was created.
* Rollback successfully executed
* Total time spent: 52 ms
(0100983)
hgbot   
2017-12-12 13:57   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 6c6ee128cec00824f65f637509045dc8fec5dd56
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Dec 08 14:50:40 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/6c6ee128cec00824f65f637509045dc8fec5dd56 [^]

Fixes Issue 0037356: Log beautifier is not working

When there is exception in Central Broker instead of adding
whole error stack trace to log line only error message
is added so that json structure is maintained.

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/CentralBroker.java
---
(0100984)
hgbot   
2017-12-12 13:57   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: e999d1a0d6245e144a3cbf19b0589be4eab24f92
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Dec 12 13:43:48 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/e999d1a0d6245e144a3cbf19b0589be4eab24f92 [^]

Related to issue 37356: Backed out changeset 6c6ee128cec0

The solution is not right because it removes the error stacktrace (and we want it to be shown), and mainly because it doesn't fix the real problem behind: the JSON structure builder

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/centralbroker/CentralBroker.java
---
(0100985)
hgbot   
2017-12-12 13:57   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations
Changeset: 432af9552baaaad20781a70e84fad69be07c32cb
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Dec 12 13:48:35 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations/rev/432af9552baaaad20781a70e84fad69be07c32cb [^]

Fixed issue 37356: Reimplemented JSONObject builder

The way the JSONObject was built wasn't standard. This piece of code has been refactorized to use the Java API to build this kind of structure.

Other minor improvements:
* Set the product identifier in a concrete error message
* Added a new line to separate error and stacktrace

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/task/TaskProposalsGenerator.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/verbosity/BeautifyLogHTMLFormatter.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/verbosity/JSONVerbosityLogger.java
M src/org/openbravo/warehouse/advancedwarehouseoperations/verbosity/identificator/implementation/IdentificatorVerbosity_OBException.java
---
(0100987)
vmromanos   
2017-12-12 14:01   
Code review + testing OK