Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032184Openbravo ERP09. Financial managementpublic2016-02-08 13:302016-02-11 17:08
caristu 
AtulOpenbravo 
highminoralways
closedfixed 
5
pi 
3.0PR16Q1 
vmromanos
Core
Production - Confirmed Stable
2014-11-20
3.0PR15Q1
https://code.openbravo.com/erp/devel/pi/rev/289b897908c3 [^]
No
0032184: Not possible to sort by unit price in Return from Customer p&e
Is not possible to sort by unit price in Return from Customer p&e.

The following error is displayed in the log after that:

867946fe 562280 [http-8082-5] ERROR org.hibernate.util.JDBCExceptionReporter - ERROR: invalid input syntax for type numeric: ""
  Position: 20857
867946fe 562280 [http-8082-5] ERROR org.openbravo.service.datasource.DataSourceServlet - could not execute query
org.hibernate.exception.DataException: could not execute query
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:102)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
    at org.hibernate.loader.Loader.doList(Loader.java:2536)
...
1) Go to the [Return From Customer] window.
2) Create a new record in the header
3) Launch the Pick/Edit lines process
4) Sort by unit price. No results are shown.
It seems that the problem is caused in the order by clause injected by ReturnToFromCustomerVendorHQLTransformer
No tags attached.
blocks defect 0032157 closed AtulOpenbravo Not possible to sort by unit price in Return from Customer p&e 
Issue History
2016-02-10 10:21AtulOpenbravoTypedefect => backport
2016-02-10 10:21AtulOpenbravoTarget Version => 3.0PR16Q1
2016-02-10 10:25AtulOpenbravoNote Added: 0084076
2016-02-11 17:07hgbotCheckin
2016-02-11 17:07hgbotNote Added: 0084118
2016-02-11 17:07hgbotStatusscheduled => resolved
2016-02-11 17:07hgbotResolutionopen => fixed
2016-02-11 17:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/99a07cb2a15f1de1a78a60f6231271c29bbd3083 [^]
2016-02-11 17:08vmromanosReview Assigned To => vmromanos
2016-02-11 17:08vmromanosNote Added: 0084120
2016-02-11 17:08vmromanosStatusresolved => closed

Notes
(0084076)
AtulOpenbravo   
2016-02-10 10:25   
Test Plan
- Go to the [Return From Customer] window.
- Create a new record in the header
- Launch the Pick/Edit lines process
- Sort by unit price. Proper sorting is done.
(0084118)
hgbot   
2016-02-11 17:07   
Repository: erp/backports/3.0PR16Q1
Changeset: 99a07cb2a15f1de1a78a60f6231271c29bbd3083
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Feb 11 16:16:57 2016 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR16Q1/rev/99a07cb2a15f1de1a78a60f6231271c29bbd3083 [^]

Fixes Issue 0032184: Not possible to sort by unit price in Return from
Customer p&e

In case of the Return From Customer for a numeric value of unit Price COALESCE
was being use with '' which should have been 0 instead, COALESCE for order no
was missing for RTC, additonal ReturnReasonLeftClause2 added to replace
EntityAlias.name in the transformeredHQL Query.

---
M src/org/openbravo/common/datasource/ReturnToFromCustomerVendorHQLTransformer.java
---
(0084120)
vmromanos   
2016-02-11 17:08   
Code review + testing OK