Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0043388 | Openbravo ERP | A. Platform | public | 2020-03-02 16:19 | 2020-03-06 14:21 |
|
Reporter | inigo_lerga | |
Assigned To | inigo_lerga | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
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 | 0043388: Apply new HQL Style in ConversionRateEventHandler.java |
Description | ConversionRateEventHandler.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-03-02 16:19 | inigo_lerga | New Issue | |
2020-03-02 16:19 | inigo_lerga | Assigned To | => inigo_lerga |
2020-03-02 16:19 | inigo_lerga | OBNetwork customer | => No |
2020-03-02 16:19 | inigo_lerga | Modules | => Core |
2020-03-02 16:19 | inigo_lerga | Triggers an Emergency Pack | => No |
2020-03-02 16:19 | inigo_lerga | Relationship added | related to 0041287 |
2020-03-02 16:19 | inigo_lerga | Status | new => scheduled |
2020-03-03 12:14 | inigo_lerga | Note Added: 0118292 | |
2020-03-06 14:19 | dmiguelez | Note Added: 0118386 | |
2020-03-06 14:20 | hgbot | Checkin | |
2020-03-06 14:20 | hgbot | Note Added: 0118387 | |
2020-03-06 14:20 | hgbot | Status | scheduled => resolved |
2020-03-06 14:20 | hgbot | Resolution | open => fixed |
2020-03-06 14:20 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/864d0cc875aceea8f2cc80ca9daac4f834e14dee [^] |
2020-03-06 14:20 | hgbot | Checkin | |
2020-03-06 14:20 | hgbot | Note Added: 0118388 | |
2020-03-06 14:20 | hgbot | Checkin | |
2020-03-06 14:20 | hgbot | Note Added: 0118389 | |
2020-03-06 14:21 | dmiguelez | Review Assigned To | => dmiguelez |
2020-03-06 14:21 | dmiguelez | Note Added: 0118390 | |
2020-03-06 14:21 | dmiguelez | Status | resolved => closed |
2020-03-06 14:21 | dmiguelez | Fixed in Version | => 3.0PR20Q2 |
Notes |
|
(0118292)
|
inigo_lerga
|
2020-03-03 12:14
|
|
--Test Plan Mantis HQL queries--
As the F&B International Group Admin role:
- Go to the Conversion Rates window and create a
new record with "AOA" as Currency.
Set any date desired prior to today and "1"
as Multiple Rate By field.
Leave the rest of fields as default.
Save the record.
#In this moment the modified HQL is executed# |
|
|
|
Test Plan II
Log in as F&B International Group Admin
Go to Conversion Rates Window and create a new record with:
* Organization: *
* Currency: USD
* To Currency: EUR
* Valid From Date: 06-03-2020
* Multiply Rate By: 2
Try to save the record, it fails with the message: Saving failed. There are different conversion rates with same dates. |
|
|
(0118387)
|
hgbot
|
2020-03-06 14:20
|
|
|
|
(0118388)
|
hgbot
|
2020-03-06 14:20
|
|
|
|
(0118389)
|
hgbot
|
2020-03-06 14:20
|
|
Repository: erp/devel/pi
Changeset: 9466c9337936130a83c31150391ca3a764491afb
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Fri Mar 06 14:20:35 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/9466c9337936130a83c31150391ca3a764491afb [^]
Related to ISSUE-43388. Code Review changes:
Retrieve first the query into an object and then do the !list.isEmpty() comparison.
The reason for this change is to make more obvius the list empty comparison
while reading the code.
---
M src/org/openbravo/event/ConversionRateEventHandler.java
---
|
|
|
|
|