Openbravo Issue Tracking System - Modules
View Issue Details
0044220ModulesAdvanced Warehouse Operationspublic2020-05-28 11:322020-06-05 13:26
inigo_lerga 
inigo_lerga 
normalminorhave not tried
closedfixed 
5
 
 
dmiguelez
0044220: Apply new HQL Style in TGC_DOR_Receipt.java
TGC_DOR_Receipt.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-28 11:32inigo_lergaNew Issue
2020-05-28 11:32inigo_lergaAssigned To => inigo_lerga
2020-05-28 11:32inigo_lergaRelationship addedrelated to 0041287
2020-05-28 11:32inigo_lergaStatusnew => scheduled
2020-05-28 12:04inigo_lergaNote Added: 0120392
2020-05-28 12:57inigo_lergaNote Edited: 0120392bug_revision_view_page.php?bugnote_id=0120392#r21110
2020-06-05 13:25hgbotCheckin
2020-06-05 13:25hgbotNote Added: 0120705
2020-06-05 13:25hgbotStatusscheduled => resolved
2020-06-05 13:25hgbotResolutionopen => fixed
2020-06-05 13:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/rev/677aa6517b747748a0c81469459fbf362f77e690 [^]
2020-06-05 13:25hgbotCheckin
2020-06-05 13:25hgbotNote Added: 0120706
2020-06-05 13:26dmiguelezReview Assigned To => dmiguelez
2020-06-05 13:26dmiguelezNote Added: 0120707
2020-06-05 13:26dmiguelezStatusresolved => closed
2022-09-06 17:18caristuCategoryAdvance Warehouse Operations => Advanced Warehouse Operations

Notes
(0120392)
inigo_lerga   
2020-05-28 12:04   
(edited on: 2020-05-28 12:57)
--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
    for Organization US East Coast with "US East 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.
    Press the Issue button and assign the task to AWO_US_E user.

As the AWO_US_E user in AWO Front End:
  - Confirm the previously created Task in the available Tasks list.

As the AWO_US_W user in AWO Front End:
  - Press the Receive button and paste into the search bar the
    Searchkey of the Distribution Order Receipt generated in pair with
    the previously created Distribution Order Issue.
    Press the find button.

#In this moment the modified HQL is executed#

(0120705)
hgbot   
2020-06-05 13:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders
Changeset: 677aa6517b747748a0c81469459fbf362f77e690
Author: IƱigo Lerga <inigo.lerga <at> openbravo.com>
Date: Thu May 28 13:00:30 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/rev/677aa6517b747748a0c81469459fbf362f77e690 [^]

fixes BUG-44220:Applied new HQL Style

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/feHooks/TGC_DOR_Receipt.java
---
(0120706)
hgbot   
2020-06-05 13:25   
Repository: erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders
Changeset: eed855fc4d3308b55899e6a36c6294cf9773ce57
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Jun 05 13:24:33 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.advancedwarehouseoperations.distributionorders/rev/eed855fc4d3308b55899e6a36c6294cf9773ce57 [^]

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

---
M src/org/openbravo/warehouse/advancedwarehouseoperations/distributionorders/feHooks/TGC_DOR_Receipt.java
---
(0120707)
dmiguelez   
2020-06-05 13:26   
Code Review + Testing Ok