Openbravo Issue Tracking System - Modules
View Issue Details
0044192ModulesAdvanced Warehouse Operationspublic2020-05-26 15:372020-06-05 12:56
inigo_lerga 
inigo_lerga 
normalminorhave not tried
closedfixed 
5
 
 
dmiguelez
No
0044192: Apply new HQL Style in TGC_DOI_Pick.java
TGC_DOI_Pick.java has HQL queries with:
- the HQL is hard to read because of formatting
- and it is mixing txt and i.e PROPERTY_ID constant which is not recommended by default
-
Follow new format as in http://wiki.openbravo.com/wiki/HQL_Coding_Conventions [^]
No tags attached.
related to design defect 0041287 acknowledged Triage Platform Base Openbravo ERP Tracking issue: Convert HQL to apply new style 
Issue History
2020-05-26 15:37inigo_lergaNew Issue
2020-05-26 15:37inigo_lergaAssigned To => inigo_lerga
2020-05-26 15:37inigo_lergaOBNetwork customer => No
2020-05-26 15:38inigo_lergaRelationship addedrelated to 0041287
2020-05-27 09:19inigo_lergaStatusnew => scheduled
2020-05-27 10:28inigo_lergaNote Added: 0120343
2020-06-05 12:55hgbotCheckin
2020-06-05 12:55hgbotNote Added: 0120702
2020-06-05 12:55hgbotStatusscheduled => resolved
2020-06-05 12:55hgbotResolutionopen => fixed
2020-06-05 12:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/rev/6aa669ba7fce0ccf3bba83652ba21bca9af63730 [^]
2020-06-05 12:55hgbotCheckin
2020-06-05 12:55hgbotNote Added: 0120703
2020-06-05 12:56dmiguelezReview Assigned To => dmiguelez
2020-06-05 12:56dmiguelezNote Added: 0120704
2020-06-05 12:56dmiguelezStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0120343)
inigo_lerga   
2020-05-27 10:28   
--Test Plan Mantis HQL--
Beforehand, the environment needs to have AWO modules
installed and working.

As the AWO-QA Admin - AWO-QA role in Backend:
  - Go to Distribution Order Issue window and create a new record
    with "US West Coast" as Warehouse Issue and "US East Coast"
    as Warehouse Receipt.
    Go to Lines Tab and create a new Line with "Ale Beer" as Product
    and 5 units as Operative Quantity.
    Save and Book the record.

As the AWO_US_W user in AWO Front End:
  - Press the Pick button and paste the previous Distribution Order
    Search Key in the search bar. Press the Search button.

#In this moment the modified HQL is executed#
(0120702)
hgbot   
2020-06-05 12:55   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders
Changeset: 6aa669ba7fce0ccf3bba83652ba21bca9af63730
Author: IƱigo Lerga <inigo.lerga <at> openbravo.com>
Date: Wed May 27 10:32:41 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/rev/6aa669ba7fce0ccf3bba83652ba21bca9af63730 [^]

fixes BUG-44192:Applied new HQL Style

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/feHooks/TGC_DOI_Pick.java
---
(0120703)
hgbot   
2020-06-05 12:55   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders
Changeset: f09676118ddd55ae70246657db31bc2a539ea00d
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Jun 05 12:55:23 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/rev/f09676118ddd55ae70246657db31bc2a539ea00d [^]

Related to ISSUE-44192. Extracted logic into it's own method and changed
some query formatting to improve redability

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/feHooks/TGC_DOI_Pick.java
---
(0120704)
dmiguelez   
2020-06-05 12:56   
Code Review + Testing Ok