From 94b5d032a0d2981d43f86b0e369d3ae253aea1fb 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 --- .../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 968c800..242945a 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 | html %] [% 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 | html %][% account.amountoutstanding | $Price | html %]
[% 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 dueTotal due [% totaldue | $Price | html %]