Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032186
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 09. Financial managementminoralways2016-02-08 13:302016-02-11 17:08
ReportercaristuView Statuspublic 
Assigned ToAtulOpenbravo 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision8287d7766667
ProjectionnoneETAnoneTarget Version3.0PR15Q3.6
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Tovmromanos
Web browser
ModulesCore
Regression levelProduction - Confirmed Stable
Regression date2014-11-20
Regression introduced in release3.0PR15Q1
Regression introduced by commithttps://code.openbravo.com/erp/devel/pi/rev/289b897908c3 [^]
Triggers an Emergency PackNo
Summary

0032186: Not possible to sort by unit price in Return from Customer p&e

DescriptionIs 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)
...
Steps To Reproduce1) 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.
Proposed SolutionIt seems that the problem is caused in the order by clause injected by ReturnToFromCustomerVendorHQLTransformer
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0032157 closedAtulOpenbravo Not possible to sort by unit price in Return from Customer p&e 

-  Notes
(0084078)
AtulOpenbravo (developer)
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.
(0084119)
hgbot (developer)
2016-02-11 17:07

Repository: erp/backports/3.0PR15Q3.6
Changeset: 8287d77666674ace6e38c5b73b92aae8514f3246
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.0PR15Q3.6/rev/8287d77666674ace6e38c5b73b92aae8514f3246 [^]

Fixes Issue 0032186: 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
---
(0084122)
vmromanos (manager)
2016-02-11 17:08

Code review + testing OK

- Issue History
Date Modified Username Field Change
2016-02-10 10:21 AtulOpenbravo Type defect => backport
2016-02-10 10:21 AtulOpenbravo Target Version => 3.0PR15Q3.6
2016-02-10 10:25 AtulOpenbravo Note Added: 0084078
2016-02-11 17:07 hgbot Checkin
2016-02-11 17:07 hgbot Note Added: 0084119
2016-02-11 17:07 hgbot Status scheduled => resolved
2016-02-11 17:07 hgbot Resolution open => fixed
2016-02-11 17:07 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3.6/rev/8287d77666674ace6e38c5b73b92aae8514f3246 [^]
2016-02-11 17:08 vmromanos Review Assigned To => vmromanos
2016-02-11 17:08 vmromanos Note Added: 0084122
2016-02-11 17:08 vmromanos Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker