Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002930Openbravo ERP09. Financial managementpublic2008-04-23 10:442008-06-18 19:28
user71 
dalsasua 
highmajoralways
closedfixed 
5
 
2.402.40 
No
Core
No
0002930: GeneralAccountingReport -> Revenues - Expenses mismatch
The GeneralAccountingReport shows a mismatch in the Revenues-Expenses amount due to a bug in the selectPyG statement.

The statement has a subselect that returns repeated values:

SELECT ACCOUNT_ID
FROM C_ELEMENTVALUE, C_VALIDCOMBINATION
WHERE C_VALIDCOMBINATION.ACCOUNT_ID = C_ELEMENTVALUE.C_ELEMENTVALUE_ID
AND C_ELEMENTVALUE.ACCOUNTTYPE = ?)

This makes the overall of the whole amount different that it should be. I thin the statement should be like it follows:

SELECT DISTINCT ACCOUNT_ID
FROM C_ELEMENTVALUE, C_VALIDCOMBINATION
WHERE C_VALIDCOMBINATION.ACCOUNT_ID = C_ELEMENTVALUE.C_ELEMENTVALUE_ID
AND C_ELEMENTVALUE.ACCOUNTTYPE = ?)


Cheers
No tags attached.
Issue History
2008-06-13 18:33psarobePrioritynormal => high
2008-06-13 18:33psarobeSeverityminor => major
2008-06-13 18:33psarobeDescription Updated
2008-06-13 18:34psarobeStatusnew => scheduled
2008-06-13 19:59cromeroTarget Version => 2.40
2008-06-18 19:28eduardo_ArgalStatusscheduled => closed
2008-06-18 19:28eduardo_ArgalNote Added: 0007845
2008-06-18 19:28eduardo_ArgalResolutionopen => fixed

Notes
(0006519)
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=1949459 [^]
(0003618)
cromero   
2008-04-28 10:23   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1500614
Originator: NO

This bug has been found in a OB 2.35 version
(0007845)
eduardo_Argal   
2008-06-18 19:28   
It was fixed previously