Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0042799Openbravo ERPA. Platformpublic2020-01-10 12:272020-03-20 17:54
inigo_lerga 
inigo_lerga 
normalminorhave not tried
closedfixed 
5
 
3.0PR20Q2 
dmiguelez
Core
No
0042799: Apply new HQL Style in FIN_PaymentEventListener.java
FIN_PaymentEventListener.java has two 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-10 12:27inigo_lergaNew Issue
2020-01-10 12:27inigo_lergaAssigned To => inigo_lerga
2020-01-10 12:27inigo_lergaModules => Core
2020-01-10 12:27inigo_lergaTriggers an Emergency Pack => No
2020-01-10 12:27inigo_lergaStatusnew => scheduled
2020-01-10 14:17inigo_lergaNote Added: 0116770
2020-01-10 14:23inigo_lergaDescription Updatedbug_revision_view_page.php?rev_id=20077#r20077
2020-01-10 14:44inigo_lergaRelationship addedrelated to 0041287
2020-01-17 12:53hgbotCheckin
2020-01-17 12:53hgbotNote Added: 0117013
2020-01-17 12:53hgbotCheckin
2020-01-17 12:53hgbotNote Added: 0117014
2020-01-17 12:53hgbotCheckin
2020-01-17 12:53hgbotNote Added: 0117015
2020-01-17 12:54dmiguelezStatusscheduled => resolved
2020-01-17 12:54dmiguelezFixed in Version => 3.0PR20Q2
2020-01-17 12:54dmiguelezFixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/d194e294f53bb18bd470f1146ede7e6ca1ad5cfd [^]
2020-01-17 12:54dmiguelezResolutionopen => fixed
2020-01-17 12:54dmiguelezReview Assigned To => dmiguelez
2020-01-17 12:54dmiguelezNote Added: 0117016
2020-01-17 12:54dmiguelezStatusresolved => closed
2020-03-20 17:54hudsonbotCheckin
2020-03-20 17:54hudsonbotNote Added: 0118732
2020-03-20 17:54hudsonbotCheckin
2020-03-20 17:54hudsonbotNote Added: 0118733

Notes
(0116770)
inigo_lerga   
2020-01-10 14:17   
Test Plan Mantis First modified HQL:
As the F&B International Group Admin role:
    - Go to the Financial Account window and
      enter in the "Cuenta de Banco" record.
      Enter the Payment Method tab and modify
      the "Cheque" method. In the Payment IN
      section change the Execution Type field
      to Automatic and the Execution Process
      to Leave as Credit.
      Save the record.
    - Go to the Sales Invoice window and create
      a new record with any Business Partner.
      Ceate a new Line with any roduct and quantity
      desired. Save the record and complete the Invoice.
    - Now go to the Payment IN window and create
      a new record. Select "Cheque" as Payment Method
      (taking into account that the Organization is
      F&B España - Región Norte), and verify that the
      Deposit To field contains "Cuenta de Banco - EUR".
    - Press the Add Details button. In the popup window
      enter any amount as the Actual Payment, select the
      previously created Invoice and put "Process
      Received Payment(s)" in the Action Regarding
      Document field. Press Done.
#In this moment the modified HQL in the
updateAPRMPendingPaymentFromInvoiceRecordis
function is executed#

#To test the modified HQL in
deleteAPRMPendingPaymentFromInvoiceRecord
function, go to the previously modified record in the
Financial Account window and leave in blank the Execution
Process field. Repeat the Payment In (from step 3)
and this HQL will be executed#
(0117013)
hgbot   
2020-01-17 12:53   
Repository: erp/devel/pi
Changeset: d194e294f53bb18bd470f1146ede7e6ca1ad5cfd
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Fri Jan 10 13:21:57 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/d194e294f53bb18bd470f1146ede7e6ca1ad5cfd [^]

Related to Issue 42799: Applied new HQL Style

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_PaymentEventListener.java
---
(0117014)
hgbot   
2020-01-17 12:53   
Repository: erp/devel/pi
Changeset: a2cfa813d95f213cd6b77fb2a0346471c88d3166
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Fri Jan 10 13:31:16 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a2cfa813d95f213cd6b77fb2a0346471c88d3166 [^]

Related to Issue 42799: Applied Sonarlint suggestions

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_PaymentEventListener.java
---
(0117015)
hgbot   
2020-01-17 12:53   
Repository: erp/devel/pi
Changeset: eab3355341b134fa04714eccac1d5c5e492e08e3
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Jan 17 12:44:34 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/eab3355341b134fa04714eccac1d5c5e492e08e3 [^]

Related to ISSUE-42799: Code Review Changes:
* Do not use Boolean.TRUE.equals, keep the code as before to make it more redable

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/event/FIN_PaymentEventListener.java
---
(0117016)
dmiguelez   
2020-01-17 12:54   
Code Review + Testing Ok
(0118732)
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
(0118733)
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