Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043278Openbravo ERPA. Platformpublic2020-02-20 12:532020-03-02 15:59
inigo_lerga 
inigo_lerga 
normalminorhave not tried
closedfixed 
5
 
3.0PR20Q2 
dmiguelez
Core
No
0043278: Apply new HQL Style in DocLineCashVATReady_PaymentTransactionReconciliation.java
DocLineCashVATReady_PaymentTransactionReconciliation.java has one HQL query 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 Tracking issue: Convert HQL to apply new style 
Issue History
2020-02-20 12:53inigo_lergaNew Issue
2020-02-20 12:53inigo_lergaAssigned To => platform
2020-02-20 12:53inigo_lergaModules => Core
2020-02-20 12:53inigo_lergaTriggers an Emergency Pack => No
2020-02-20 14:14inigo_lergaAssigned Toplatform => inigo_lerga
2020-02-20 14:14inigo_lergaStatusnew => scheduled
2020-02-20 14:15inigo_lergaNote Added: 0117971
2020-02-20 14:29inigo_lergaNote Edited: 0117971bug_revision_view_page.php?bugnote_id=0117971#r20413
2020-02-20 15:35inigo_lergaRelationship addedrelated to 0041287
2020-03-02 15:58hgbotCheckin
2020-03-02 15:58hgbotNote Added: 0118253
2020-03-02 15:58hgbotStatusscheduled => resolved
2020-03-02 15:58hgbotResolutionopen => fixed
2020-03-02 15:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/aa65f11ee2533f45ae8f902e9a0b85c31a58c968 [^]
2020-03-02 15:58hgbotCheckin
2020-03-02 15:58hgbotNote Added: 0118254
2020-03-02 15:59dmiguelezReview Assigned To => dmiguelez
2020-03-02 15:59dmiguelezNote Added: 0118255
2020-03-02 15:59dmiguelezStatusresolved => closed
2020-03-02 15:59dmiguelezFixed in Version => 3.0PR20Q2

Notes
(0117971)
inigo_lerga   
2020-02-20 14:15   
(edited on: 2020-02-20 14:29)
--Test Plan Mantis HQL queries--
First of all, to execute this query it is needed to
have installed the Cash VAT Management module.

As the F&B International Group Admin role:
  - Go to the Process Request window and Unschedule
    the Acct Server Process.
    Create a new record with the "Acct Server Process"
    Process and "Run Immediately" as Timing.
  - Go to the Organization window and enter the
    "F&B US, Inc." record. Open its Information Tab
    line and check the Cash VAT checkbox.
  - Go now to the Sales Order window and create a
    new record with "Alimentos y Supermercados, S.A"
    as Business Partner.
    Go to the Lines Tab and create a new one with
    "Cerveza Ale 0,5L" as Product and 40 units in
    Ordered Quantity.
    Press the Book button and OK in the popup window.
    Press the Add Payment button and Done in the
    popup window.
  - Go back to the Process Request window and Schedule
    the previously created Process.
  
  #In this moment the modified HQLs are executed#

(0118253)
hgbot   
2020-03-02 15:58   
Repository: erp/devel/pi
Changeset: aa65f11ee2533f45ae8f902e9a0b85c31a58c968
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Thu Feb 20 14:18:09 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/aa65f11ee2533f45ae8f902e9a0b85c31a58c968 [^]

fixes BUG-43278:Applied new HQL Style

---
M src/org/openbravo/erpCommon/ad_forms/DocLineCashVATReady_PaymentTransactionReconciliation.java
---
(0118254)
hgbot   
2020-03-02 15:58   
Repository: erp/devel/pi
Changeset: f0903f85d3b657b39d6ce2342de593a30085be54
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Thu Feb 20 14:30:23 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f0903f85d3b657b39d6ce2342de593a30085be54 [^]

related to ISSUE-43278: Applied Sonarlint suggestions and more

Sonarlint suggestions applied.
Finals added.

---
M src/org/openbravo/erpCommon/ad_forms/DocLineCashVATReady_PaymentTransactionReconciliation.java
---
(0118255)
dmiguelez   
2020-03-02 15:59   
Code Review + Testing Ok