Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0042725 | Openbravo ERP | A. Platform | public | 2020-01-08 10:30 | 2020-03-20 17:54 |
|
Reporter | inigo_lerga | |
Assigned To | inigo_lerga | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR20Q2 | |
Merge Request Status | |
Review Assigned To | dmiguelez |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0042725: Apply new HQL Style in AddPaymentActionHandler.java |
Description | AddPaymentActionHandler.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 |
Steps To Reproduce | - |
Proposed Solution | Follow new format as in http://wiki.openbravo.com/wiki/HQL_Coding_Conventions [^] |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | design defect | 0041287 | | acknowledged | Triage Platform Base | Tracking issue: Convert HQL to apply new style |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-01-08 10:30 | inigo_lerga | New Issue | |
2020-01-08 10:30 | inigo_lerga | Assigned To | => inigo_lerga |
2020-01-08 10:30 | inigo_lerga | OBNetwork customer | => No |
2020-01-08 10:30 | inigo_lerga | Modules | => Core |
2020-01-08 10:30 | inigo_lerga | Triggers an Emergency Pack | => No |
2020-01-08 10:30 | inigo_lerga | Status | new => scheduled |
2020-01-08 10:31 | inigo_lerga | Relationship added | related to 0041287 |
2020-01-08 13:19 | inigo_lerga | Note Added: 0116691 | |
2020-01-08 13:25 | inigo_lerga | Summary | Apply new HQL Style => Apply new HQL Style in AddPaymentActionHandler.java |
2020-01-08 13:25 | inigo_lerga | Description Updated | bug_revision_view_page.php?rev_id=20040#r20040 |
2020-01-08 14:02 | inigo_lerga | Description Updated | bug_revision_view_page.php?rev_id=20048#r20048 |
2020-01-09 16:18 | dmiguelez | Note Added: 0116734 | |
2020-01-10 08:08 | hgbot | Checkin | |
2020-01-10 08:08 | hgbot | Note Added: 0116747 | |
2020-01-10 08:08 | hgbot | Checkin | |
2020-01-10 08:08 | hgbot | Note Added: 0116748 | |
2020-01-10 08:09 | dmiguelez | Status | scheduled => resolved |
2020-01-10 08:09 | dmiguelez | Fixed in Version | => 3.0PR20Q2 |
2020-01-10 08:09 | dmiguelez | Fixed in SCM revision | => https://code.openbravo.com/erp/devel/pi/rev/7a262a5840ecb229574906e57dafc36176968fe0 [^] |
2020-01-10 08:09 | dmiguelez | Resolution | open => fixed |
2020-01-10 08:09 | dmiguelez | Review Assigned To | => dmiguelez |
2020-01-10 08:09 | dmiguelez | Note Added: 0116749 | |
2020-01-10 08:09 | dmiguelez | Status | resolved => closed |
2020-03-20 17:54 | hudsonbot | Checkin | |
2020-03-20 17:54 | hudsonbot | Note Added: 0118725 | |
2020-03-20 17:54 | hudsonbot | Checkin | |
2020-03-20 17:54 | hudsonbot | Note Added: 0118726 | |
Notes |
|
(0116691)
|
inigo_lerga
|
2020-01-08 13:19
|
|
Test Plan Mantis:
As the F&B International Group Admin role:
- Go to Sales Order Window and create a
new record. Select any Business Partner.
- Go to Lines Tab and create a new line
with any product and quantity.
- Save and press the Book button of
the Sales Order.
- Press the Add Payment button.
- Inside the popup window named Add Payment
press the Done button.
#In this moment the modified hql query is executed# |
|
|
|
Test Plan II
Go to Payment In Window and create a new record with:
* Organization: F&B España - Región Norte
* Received From: Alimentos y Supermercados
* Amount: 100
Click on Add Details Button.
In the Totals section, select 'Leave the credit to be used later' as the Overpayment Action and click on Done.
Create another record with:
* Organization: F&B España - Región Norte
* Received From: Alimentos y Supermercados
* Amount: 0
Click on Add Details Button.
In the GL Items section click on Add New to create a new record with:
* G/L Item: Capital Social
* Business Partner: Alimentos y Supermercados
* Received In: 100
In the Credit to Use section select the record related to the previous payment
Click on Done.
In the Lines, check in the Dimensions section that the Business Partner dimension has the value 'Alimentos y Supermercados' |
|
|
(0116747)
|
hgbot
|
2020-01-10 08:08
|
|
Repository: erp/devel/pi
Changeset: 7a262a5840ecb229574906e57dafc36176968fe0
Author: Iñigo Lerga <inigo.lerga <at> openbravo.com>
Date: Wed Jan 08 11:23:28 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7a262a5840ecb229574906e57dafc36176968fe0 [^]
Related to Issue 42725: Applied new HQL Style and SonarLint suggestions
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
|
|
|
(0116748)
|
hgbot
|
2020-01-10 08:08
|
|
Repository: erp/devel/pi
Changeset: 774394e7fee9d65251ccc0f12205309ad121e23f
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Thu Jan 09 15:57:31 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/774394e7fee9d65251ccc0f12205309ad121e23f [^]
Related to Issue 42725: Code Review changes
* Reorder modifiers of class variable
* Split fullPaydAndHasNegativeLines into two independant methods
to make code more redable
* Rename method accountDimension to getAccountDimension and send the class
as a parameter to properly retrieve the desired BaseOBObject
* Add final modifiers to variables and parameters
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentActionHandler.java
---
|
|
|
|
|
|
|
|
|
|
|