From 6e95d310801867477f532bba23ce97932e2cd59b Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Mon, 19 Jul 2010 20:35:52 +0530 Subject: [PATCH] [IMP] account : Improve the account_journal report bzr revid: sbh@tinyerp.com-20100719150552-gxn0c196ol66krov --- addons/account/report/account_journal.rml | 40 +++++++++++++++++++++-- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/addons/account/report/account_journal.rml b/addons/account/report/account_journal.rml index 43abea5fc5d..26067043ed6 100644 --- a/addons/account/report/account_journal.rml +++ b/addons/account/report/account_journal.rml @@ -205,7 +205,8 @@ - Chat Account + Chat Account[[ data['model']=='account.journal.period' and removeParentNode('font') ]] + Company [[ data['model']=='account.journal.period' or removeParentNode('font') and '' ]] Fiscal Year Journal Filters By [[ get_filter(data)!='No Filter' and '' or removeParentNode('font') ]][[ get_filter(data) or '' ]] @@ -213,8 +214,8 @@ Printing Date - [[ get_account(data) or '' ]] - [[ get_fiscalyear(data) or '' ]] + [[ get_account(data) or data['model']=='account.journal.period' and o.company_id.name ]] + [[ get_fiscalyear(data) or data['model']=='account.journal.period' and o.fiscalyear_id.name ]] [[o.journal_id.name ]] [[ get_filter(data)=='No Filter' and get_filter(data) or removeParentNode('para') ]] [[ get_filter(data)=='Date' or removeParentNode('blockTable') ]] @@ -281,6 +282,39 @@ + [[ data['model'] =='account.journal.period' or removeParentNode('blockTable') ]] + + Date + Voucher No + A/c No. + Third party + Entry label + Debit + Credit + Balance + + + [[o.period_id.name ]] + [[ o.journal_id.code ]] + + + + [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id)) ]] + [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id)) ]] + [[ formatLang((sum_debit(o.period_id.id, o.journal_id.id) - sum_credit(o.period_id.id, o.journal_id.id))) ]] + + + [[ repeatIn(lines(o.period_id.id, o.journal_id.id), 'line') ]][[ formatLang(line.date,date=True) ]] + [[ line.ref ]] + [[ line.account_id.code ]] + [[ line.partner_id and line.partner_id.name ]] + [[ line.name ]] + [[ formatLang(line.debit) ]] + [[ formatLang(line.credit) ]] + [[ formatLang(line.credit - line.debit) ]] + + + [[ data and 'form' in data and data['form']['amount_currency'] == True or removeParentNode('blockTable') ]] Date