Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002772Openbravo ERP07. Sales managementpublic2008-03-29 00:262008-07-08 11:53
cromero 
cromero 
normalminoralways
closedfixed 
5
 
2.40beta 
No
Core
No
0002772: Use numbering vs string ordination in dimensional rpts
In dimensional reports, if you use a string ordination in the ORDER BY clause the result can be: 1,10,11,2,3,4,5.... when you expect to be 1,2,3,4,5,..10,11
Well the solution is to use a TO_NUMBER(VALUE) in the ODER BY to use a numbering ordination instead of a string ordination
No tags attached.
Issue History
2008-07-08 11:53plujanStatusresolved => closed
2008-07-08 11:53plujanFixed in Version2.40alpha-r2 => 2.40beta

Notes
(0006361)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1928341 [^]
(0003383)
cromero   
2008-03-29 00:32   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1500614
Originator: YES

This error causes that the grouping label was not correct in these reports:
ReportInvoiceCustomerDimensionalAnalyses_data.xsql
ReportInvoiceCustomerDimensionalAnalysesJR_data.xsql
ReportInvoiceVendorDimensionalAnalysesJR_data.xsql
ReportMaterialDimensionalAnalysesJR_data.xsql
ReportPurchaseDimensionalAnalysesJR_data.xsql
ReportRefundInvoiceCustomerDimensionalAnalyses_data.xsql
ReportRefundSalesDimensionalAnalyses_data.xsql
ReportSalesDimensionalAnalyze_data.xsql
ReportSalesDimensionalAnalyzeJR_data.xsql
ReportShipmentDimensionalAnalyzeJR_data.xsql
(0003384)
cromero   
2008-03-29 00:40   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1500614
Originator: YES

Bug fixed in revision 3114

Luckily only the ReportInvoiceCustomerDimensionalAnalyses_data.xsql and the ReportInvoiceCustomerDimensionalAnalysesJR_data.xsql have more than 9 dimensions (in the other reports ordination was working "satisfactorily")
(0003385)
psarobe   
2008-06-09 13:49   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1500703
Originator: NO

Can you give the steps to reproduce it?