Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015265Openbravo ERP09. Financial managementpublic2010-10-22 13:422010-12-20 12:16
networkb 
dalsasua 
urgentmajoralways
closedfixed 
20Community Appliance
2.40MP16 
2.50MP25 
Core
No
0015265: PDF format in general ledger journal does not group by date
In PDF format, the general ledger journal does not group by date, but in html format it is done
. Financial Management || Receivables & Payables || Transactions || Bank Statement || Header
 new record

. Financial Management || Receivables & Payables || Transactions || Bank Statement || Lines
  new line:
   line 10: create payment
            effective date and accounting date 10/10/2010
   line 20: create payment
            effective date and accounting date 11/10/2010

process and post
 html 2 journals separated by date
 pdf 1 journal
       
No tags attached.
blocks defect 00149922.50MP25 closed dalsasua PDF format in general ledger journal does not group by date 
Issue History
2010-11-23 11:18dalsasuaTypedefect => backport
2010-11-23 11:18dalsasuafix_in_branch => 2.40
2010-11-23 13:16hgbotCheckin
2010-11-23 13:16hgbotNote Added: 0032788
2010-11-23 13:16hgbotStatusscheduled => resolved
2010-11-23 13:16hgbotResolutionopen => fixed
2010-11-23 13:16hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/a9980c22b495f46fefa87dfde7c489cd25eaaf9d [^]
2010-12-20 12:16psarobeNote Added: 0033286
2010-12-20 12:16psarobeStatusresolved => closed

Notes
(0032788)
hgbot   
2010-11-23 13:16   
Repository: erp/stable/2.40
Changeset: a9980c22b495f46fefa87dfde7c489cd25eaaf9d
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Tue Nov 23 13:12:52 2010 +0100
URL: http://code.openbravo.com/erp/stable/2.40/rev/a9980c22b495f46fefa87dfde7c489cd25eaaf9d [^]

Fixes issue 15265: PDF format in general ledger journal does not group by date
Issue is not in Journal report, but in DocBank servlet. When posting a bank statement, if the lines do not have all the same accounting date, it should assign a new FactAcctGroupId, so different entries are created. One only entry cannot have different dates for it's lines.
Solution is to:
1- Sort the lines by accounting date
2- Each time the date of a bank statement lines is different from the one in the previous line, assign a new FactAcctGroupID

---
M src/org/openbravo/erpCommon/ad_forms/DocBank.java
M src/org/openbravo/erpCommon/ad_forms/DocLineBank_data.xsql
---
(0033286)
psarobe   
2010-12-20 12:16   
Tested working fine