From 3199778b5cdfe0d35e5116a9c77ebc105a82b919 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 24 Apr 2018 20:58:50 +0000 Subject: [PATCH] Bug 20656: Better formatting for print summary This patch is a slightly edited c&p from boraccount.tt 1 - Manually add a credit with no notes to patron 2 - Print summary 3 - Inspect the line 4 - Note that td has extra newlines and no words 5 - Apply patch 6 - Print summary again 7 - Note better formatting Signed-off-by: Katrin Fischer Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens (cherry picked from commit 4df6a3ef796c6e8dd002c0cc1cd4d4b2d501be34) Signed-off-by: Martin Renvoize --- .../en/modules/members/moremember-print.tt | 42 ++++++++++--------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt index 3bb901a754..92a0abb861 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt @@ -93,32 +93,36 @@ [% END %] [% IF accounts && totaldue != 0 %] - +
- - - - - - + + + + + + + + + [% FOREACH account IN accounts %] - - - - - - + + + + + [% IF ( account.amount < 0 ) %] + [% IF ( account.amountoutstanding < 0 ) %] + [% END %] - - + +
Account fines and payments
Description of chargesDateAmountOutstanding
DateDescription of chargesNoteAmountOutstanding
- [% IF ( account.itemnumber ) %][% END %] - [% account.description %] [% IF account.itemnumber AND account.accounttype != 'F' AND account.accounttype != 'FU' %] [% account.item.biblio.title |html %][% END %] - [% IF ( account.itemnumber ) %][% END %] - [% account.date | $KohaDates %][% account.amount | $Price %][% account.amountoutstanding | $Price %]
[% account.date | $KohaDates %] + [% INCLUDE 'accounttype.inc' accountline => account %] + [%- IF account.payment_type %], [% AuthorisedValues.GetByCode('PAYMENT_TYPE', account.payment_type) | html %][% END %] + [%- IF account.description %], [% account.description | html %][% END %] +  [% IF ( account.itemnumber ) %][% account.item.biblio.title | html %][% END %][% account.note | html_line_break %][% ELSE %][% END %][% account.amount | $Price | html %][% ELSE %][% END %][% account.amountoutstanding | $Price | html %]
Total due[% totaldue | $Price %]Total due[% totaldue | $Price | html %]
-- 2.39.5