Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007861Openbravo ERP09. Financial managementpublic2009-02-27 10:512009-04-22 00:01
networkb 
dalsasua 
immediatemajoralways
closedfixed 
5
2.35MP5 
2.35MP52.50 
Core
No
0007861: Select clause in Bank Statement's description doesn't get the correct line value for General Ledger Report
Select clause defined for Bank Statement's descriptions is not taking the correct value in @Line@ variable, so the description is not working properly and , as a consequence of that, some records in General Ledger Report are being grouped (because they appear as they have same account value, same accounting date and same description)
1. Financial Management || Accounting || Setup || Accounting Schema || Account Schema Tables --> go to C_BankStatement table and add
"SELECT 'Extracto: ' || C_BANKSTATEMENT.NAME || ' - ' || C_BANKSTATEMENTLINE.LINE || ' - ' || NVL(C_DEBT_PAYMENT.DESCRIPTION,C_BPARTNER.NAME) FROM C_BANKSTATEMENT,C_BANKSTATEMENTLINE, C_DEBT_PAYMENT, C_BPARTNER WHERE C_BANKSTATEMENT.C_BANKSTATEMENT_ID = C_BANKSTATEMENTLINE.C_BANKSTATEMENT_ID AND C_BANKSTATEMENTLINE.C_DEBT_PAYMENT_ID = C_DEBT_PAYMENT.C_DEBT_PAYMENT_ID AND C_DEBT_PAYMENT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BANKSTATEMENT.C_BANKSTATEMENT_ID = @RecordId@ AND C_BANKSTATEMENTLINE.C_BANKSTATEMENTLINE_ID = @Line@"in SQL Description box.

2. Go to Financial Management || Receivables & Payables || Transactions || Bank Statement --> create 2 bank statements with same bank account and same accounting date. Process and Post.

3. Financial Management || Accounting || Analysis Tools || General Ledger Report --> execute the report and check that both bank statements are being grouped because description is the same (@Line@ variable is not being taken properly)
No tags attached.
depends on backport 00079242.35MP5 closed dalsasua Select clause in Bank Statement's description doesn't get the correct line value for General Ledger Report 
depends on backport 00079252.35MP5 closed dalsasua Select clause in Bank Statement's description doesn't get the correct line value for General Ledger Report 
related to defect 00091412.50 closed dalsasua Invoice number lost in GL Report 
Issue History
2009-02-27 10:51networkbNew Issue
2009-02-27 10:51networkbAssigned To => rafaroda
2009-02-27 10:51networkbRegression testing => No
2009-02-27 10:53rafarodaAssigned Torafaroda => dalsasua
2009-03-03 18:55eduardo_ArgalStatusnew => scheduled
2009-03-03 18:55eduardo_Argalfix_in_branch => pi
2009-03-03 19:06hgbotCheckin
2009-03-03 19:06hgbotNote Added: 0014334
2009-03-03 19:06hgbotStatusscheduled => resolved
2009-03-03 19:06hgbotResolutionopen => fixed
2009-03-03 19:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5b3b48eec9c87f8be8056d8d57dd394f42b428c2 [^]
2009-04-21 10:33psarobeStatusresolved => closed
2009-04-22 00:01anonymoussf_bug_id0 => 2778032
2009-08-03 16:24rafarodaRelationship addedrelated to 0009141

Notes
(0014334)
hgbot   
2009-03-03 19:06   
Repository: erp/devel/pi
Changeset: 5b3b48eec9c87f8be8056d8d57dd394f42b428c2
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Tue Mar 03 19:05:19 2009 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5b3b48eec9c87f8be8056d8d57dd394f42b428c2 [^]

Fixes bug 0007861: Select clause in Bank Statement's description doesn't get the correct line value for General Ledger Report

---
M src/org/openbravo/erpCommon/ad_forms/DocBank.java
M src/org/openbravo/erpCommon/ad_forms/FactLine.java
---