From f52c6965984f80f77054220c72148198980e2cf8 Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Wed, 15 Sep 2010 11:52:10 +0530 Subject: [PATCH] overdue payment bzr revid: apa@tinyerp.com-20100915062210-9ojcx0xmfelj6yjl --- addons/account/report/overdue.rml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/account/report/overdue.rml b/addons/account/report/overdue.rml index 5da8879fa0f..5f461cd9768 100644 --- a/addons/account/report/overdue.rml +++ b/addons/account/report/overdue.rml @@ -116,7 +116,7 @@ Document: Customer account statement Date: [[ formatLang(time.strftime('%Y-%m-%d'),date=True) ]] - Customer Ref: [[ o.ref ]] + Customer Ref: [[ o.ref or '' ]] @@ -181,13 +181,13 @@ [[ line['date_maturity'] and formatLang(line['date_maturity'],date=True) or '' ]] - [[ (line['account_id']['type'] == 'receivable' and formatLang(line['debit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['credit'] * -1) or ' ') ]] + [[ (line['account_id']['type'] == 'receivable' and formatLang(line['debit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['credit'] * -1) or ' ') ]] [[ company.currency_id.symbol ]] - [[ (line['account_id']['type'] == 'receivable' and formatLang(line['credit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['debit'] * -1) or 0) ]] + [[ (line['account_id']['type'] == 'receivable' and formatLang(line['credit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['debit'] * -1) or 0) ]] [[ company.currency_id.symbol ]] - [[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and (line['debit'] - line['credit']) ]] + [[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and (line['debit'] - line['credit']) ]] [[ company.currency_id.symbol ]] [[ line['blocked'] and 'X' or '' ]]