Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0042762Openbravo ERPA. Platformpublic2020-01-09 13:212020-03-20 17:54
inigo_lerga 
inigo_lerga 
normalminorhave not tried
closedfixed 
5
 
3.0PR20Q2 
dmiguelez
No
Core
No
0042762: Apply new HQL Style in ProcessInvoice.java
ProcessInvoice.java has four HQL queries with:
- the HQL is hard to read because of formatting
-
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 Tracking issue: Convert HQL to apply new style 
Issue History
2020-01-09 13:21inigo_lergaNew Issue
2020-01-09 13:21inigo_lergaAssigned To => inigo_lerga
2020-01-09 13:21inigo_lergaOBNetwork customer => No
2020-01-09 13:21inigo_lergaModules => Core
2020-01-09 13:21inigo_lergaTriggers an Emergency Pack => No
2020-01-09 13:22inigo_lergaProposed Solution updated
2020-01-09 13:22inigo_lergaStatusnew => scheduled
2020-01-09 16:54inigo_lergaNote Added: 0116735
2020-01-10 14:44inigo_lergaRelationship addedrelated to 0041287
2020-01-17 12:25hgbotCheckin
2020-01-17 12:25hgbotNote Added: 0117007
2020-01-17 12:25hgbotCheckin
2020-01-17 12:25hgbotNote Added: 0117008
2020-01-17 12:25dmiguelezStatusscheduled => resolved
2020-01-17 12:25dmiguelezFixed in Version => 3.0PR20Q2
2020-01-17 12:25dmiguelezFixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/6f2ec9ddeaed662466719c2a8deef21bd6dcb8d9 [^]
2020-01-17 12:25dmiguelezResolutionopen => fixed
2020-01-17 12:26dmiguelezReview Assigned To => dmiguelez
2020-01-17 12:26dmiguelezNote Added: 0117009
2020-01-17 12:26dmiguelezStatusresolved => closed
2020-03-20 17:54hudsonbotCheckin
2020-03-20 17:54hudsonbotNote Added: 0118731

Notes
(0116735)
inigo_lerga   
2020-01-09 16:54   
Test Plan Mantis First modified HQL:
As the F&B International Group Admin role:
    - Go to the Sales Invoice window and
      enter a new record with any Business
      Partner. Add a new line with any product
      and quantity desired.
    - Complete de Invoice and Press the Reactivate
      button. Select the void option and OK button.
#In this moment the modified HQL is executed#

Test Plan Mantis Second, Third and Fourth modified HQLs:
As the F&B International Group Admin role:
    - Go to the Purchase Order window and
      enter a new record with any Business
      Partner. Add a new line with any product
      and quantity desired. Complete the Order.
    - Go to the Payment Out window and enter a
      new record with the previous Business Partner
      in the Paying To field.
    - Press the Add Details button, select Orders
      in the options shown in the Transaction Type
      field. Select the Order previously created and
      press the Done button.
    - Complete the Payment Out.
    - Go to the Purchase Invoice window and create a
      new record. Select the previously used Business
      Partner.
    - Press the Create Lines From Order button and
      select the previously completed Order. Press the
      Done button.
    - Complete the Purchase Invoice. Now press the
      Reactivate button and select the Void option in
      the Action regarding document. Press Ok button.
#In this moment the modified HQLs are executed#
(0117007)
hgbot   
2020-01-17 12:25   
Repository: erp/devel/pi
Changeset: 6f2ec9ddeaed662466719c2a8deef21bd6dcb8d9
Author: IƱigo Lerga <inigo.lerga <at> openbravo.com>
Date: Thu Jan 09 14:57:22 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6f2ec9ddeaed662466719c2a8deef21bd6dcb8d9 [^]

Related to Issue 42762: Applied new HQL Style and Sonarlint suggestions

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/ProcessInvoice.java
---
(0117008)
hgbot   
2020-01-17 12:25   
Repository: erp/devel/pi
Changeset: d3aaf9dada39fd8ee6b9fdb707dfe27481f028e0
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Jan 17 12:24:34 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d3aaf9dada39fd8ee6b9fdb707dfe27481f028e0 [^]

Related to ISSUE-42762: Code Review Changes:
* Changed name of constant to follow standard conventions
* Do not use Boolean.TRUE.equals, keep the code as before to make it more redable
* Removed unused parameter in method

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/ProcessInvoice.java
---
(0117009)
dmiguelez   
2020-01-17 12:26   
Code Review + Testing Ok
(0118731)
hudsonbot   
2020-03-20 17:54   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b31620115262 [^]
Maturity status: Test