From 9d79988d4c68dbac753ade6f1b5fef44ac290f95 Mon Sep 17 00:00:00 2001 From: Marc Cassuto Date: Mon, 18 Aug 2014 14:17:33 -0400 Subject: [PATCH] account_partner_aged_statement - Minor fixes : 1/ aling-right for cell with amounts 2/ print the line.move_id.name rather than line_id.name which usually provides the information than line_id.ref --- .../report/partner_aged_statement.mako | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/account_partner_aged_statement_webkit/report/partner_aged_statement.mako b/account_partner_aged_statement_webkit/report/partner_aged_statement.mako index 2773db52..b8f40c37 100644 --- a/account_partner_aged_statement_webkit/report/partner_aged_statement.mako +++ b/account_partner_aged_statement_webkit/report/partner_aged_statement.mako @@ -93,13 +93,13 @@ %for line in getLines30(partner): ${ formatLang(line.date, date=True) } - ${ line.name } + ${ line.move_id.name } ${ line.ref } ${ line.date_maturity and formatLang(line.date_maturity,date=True) or '' } - ${ formatLang(line.debit) or 0 } - ${ formatLang(line.credit) or 0 } - ${ formatLang(line.debit - line.credit, currency_obj = company.currency_id) } - ${ line.amount_currency and formatLang(line.amount_currency, currency_obj = line.currency_id) or '' } + ${ formatLang(line.debit) or 0.0 } + ${ formatLang(line.credit) or 0.0 } + ${ formatLang(line.debit - line.credit, currency_obj = company.currency_id) } + ${ line.amount_currency and formatLang(line.amount_currency, currency_obj = line.currency_id) or '' } %endfor ## for line in getLines30(partner) @@ -121,13 +121,13 @@ %for line in getLines3060(partner): ${ formatLang(line.date, date=True) } - ${ line.name } + ${ line.move_id.name } ${ line.ref } ${ line.date_maturity and formatLang(line.date_maturity,date=True) or '' } - ${ formatLang(line.debit) or 0 } - ${ formatLang(line.credit) or 0 } - ${ formatLang(line.debit - line.credit, currency_obj = company.currency_id) } - ${ line.amount_currency and formatLang(line.amount_currency, currency_obj = line.currency_id) or '' } + ${ formatLang(line.debit) or 0 } + ${ formatLang(line.credit) or 0 } + ${ formatLang(line.debit - line.credit, currency_obj = company.currency_id) } + ${ line.amount_currency and formatLang(line.amount_currency, currency_obj = line.currency_id) or '' } %endfor ## for line in getLines3060(partner) @@ -149,13 +149,13 @@ %for line in getLines60(partner): ${ formatLang(line.date, date=True) } - ${ line.name } + ${ line.move_id.name } ${ line.ref } ${ line.date_maturity and formatLang(line.date_maturity,date=True) or '' } - ${ formatLang(line.debit) or 0 } - ${ formatLang(line.credit) or 0 } - ${ formatLang(line.debit - line.credit, currency_obj = company.currency_id) } - ${ line.amount_currency and formatLang(line.amount_currency, currency_obj = line.currency_id) or '' } + ${ formatLang(line.debit) or 0 } + ${ formatLang(line.credit) or 0 } + ${ formatLang(line.debit - line.credit, currency_obj = company.currency_id) } + ${ line.amount_currency and formatLang(line.amount_currency, currency_obj = line.currency_id) or '' } %endfor ## for line in getLines60(partner)