From e550cc74330de15326cf54540fb0570a7b0c2339 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 --- .../prog/en/modules/members/moremember-print.tt | 38 ++++++++++++---------- 1 file changed, 21 insertions(+), 17 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 3bb901a..087bbe2 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,31 +93,35 @@ [% END %] [% IF accounts && totaldue != 0 %] - +
- - - - - - + + + + + + + + + [% FOREACH account IN accounts %] - - - - - + + + + + [% IF ( account.amount < 0 ) %] + [% IF ( account.amountoutstanding < 0 ) %] [% END %] - + -- 2.1.4
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) %][% END %] + [%- IF account.description %], [% account.description %][% END %] +  [% IF ( account.itemnumber ) %][% account.item.biblio.title |html %][% END %][% account.note | html_line_break %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
Total dueTotal due [% totaldue | $Price %]