Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0042884 | Openbravo ERP | A. Platform | public | 2020-01-15 13:34 | 2020-02-13 09:09 |
|
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 | | |
Merge Request Status | |
Review Assigned To | |
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 | 0042884: Apply new HQL Style in StockReservationPickAndEditDataSource.java |
Description | StockReservationPickAndEditDataSource.java has two HQL queries 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-15 13:34 | inigo_lerga | New Issue | |
2020-01-15 13:34 | inigo_lerga | Assigned To | => inigo_lerga |
2020-01-15 13:34 | inigo_lerga | OBNetwork customer | => No |
2020-01-15 13:34 | inigo_lerga | Modules | => Core |
2020-01-15 13:34 | inigo_lerga | Triggers an Emergency Pack | => No |
2020-01-15 13:34 | inigo_lerga | Relationship added | related to 0041287 |
2020-01-16 08:20 | inigo_lerga | Status | new => scheduled |
2020-01-16 13:33 | inigo_lerga | Note Added: 0116926 | |
2020-01-16 14:06 | inigo_lerga | Description Updated | bug_revision_view_page.php?rev_id=20145#r20145 |
2020-01-16 17:08 | inigo_lerga | Note Edited: 0116926 | bug_revision_view_page.php?bugnote_id=0116926#r20151 |
2020-01-21 12:57 | hgbot | Checkin | |
2020-01-21 12:57 | hgbot | Note Added: 0117138 | |
2020-01-21 12:57 | hgbot | Status | scheduled => resolved |
2020-01-21 12:57 | hgbot | Resolution | open => fixed |
2020-01-21 12:57 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bdd233669137f38060a51db25e69f08a98e35032 [^] |
2020-01-21 12:57 | hgbot | Checkin | |
2020-01-21 12:57 | hgbot | Note Added: 0117139 | |
2020-01-21 12:57 | hgbot | Checkin | |
2020-01-21 12:57 | hgbot | Note Added: 0117140 | |
2020-02-13 09:09 | inigo_lerga | Status | resolved => closed |
Notes |
|
(0116926)
|
inigo_lerga
|
2020-01-16 13:33
(edited on: 2020-01-16 17:08) |
|
Test Plan Mantis HQL queries in lines 1063, 1461, 1882, 1197, 1281:
As the F&B International Group Admin role:
- Go to the Preference window and create a new record with
Organization * and "Enable Stock Reservations" as Property.
Write "Y" as value and save the record.
- Go to the Stock Reservation window and create a new
record with "F&B España - Región Norte" as Organization
and "Cerveza Lager 0,5L" with 5 units in the Quantity
field.
Press the Manage Stock button.
#In this moment the modified HQLs are executed#
- Select the only record that is shown in the popup window
and write 5 in the Quantity field. Press the Done button.
Test Plan Mantis HQL query in line 1812:
Once completed the previous steps:
- Press the Manage Stock button again.
#In this moment the modified HQL is executed#
- Press the Done button.
Test Plan Mantis HQL query in line 1852:
Once completed the previous steps:
- Go to the Purchase Order window and create a new record with
"Bebidas Alegres, S.L." as Business Partner.
Go to the Lines Tab and create a new record with the Product
"Cerveza Ale 0,5L" and 10 units as Ordered Quantity.
Save and press the Book button and then OK button.
- Go back to the Stock Reservation window and create a new
record with "F&B España - Región Norte" as Organization
and "Cerveza Ale 0,5L".
Press the Manage Stock button.
#In this moment the modified HQL is executed#
|
|
|
(0117138)
|
hgbot
|
2020-01-21 12:57
|
|
|
|
(0117139)
|
hgbot
|
2020-01-21 12:57
|
|
|
|
(0117140)
|
hgbot
|
2020-01-21 12:57
|
|
Repository: erp/devel/pi
Changeset: b7e37b36d21f1b781c0a8949b867204615ee9b7e
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Jan 21 09:52:27 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b7e37b36d21f1b781c0a8949b867204615ee9b7e [^]
Related to ISSUE-42884. Code Review changes:
* Use id instead of object in query
* Extracted logic to method to improve redability
* Use StringUtils.isEmpty instead of checking if the string
is null or empty manually
---
M src/org/openbravo/common/datasource/StockReservationPickAndEditDataSource.java
---
|
|