From ac14e4cc3b7fa0a2869a2f71df5267fe8615db96 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 16 Jul 2020 09:42:20 +0100 Subject: [PATCH] Bug 26734: Ratify account slip printing This patch simplifies the members/print*.pl controller scripts to only pass around the minimum required data for the templates. --- .../prog/en/modules/members/boraccount.tt | 6 +- members/printfeercpt.pl | 100 ++++++------------ members/printinvoice.pl | 78 +++++--------- pos/printreceipt.pl | 25 +++-- 4 files changed, 76 insertions(+), 133 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 8158b016e9..9e28d2cb16 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -89,9 +89,9 @@ [% IF account.amountoutstanding <= 0 %][% ELSE %][% END %][% account.amountoutstanding | $Price %] [% IF ( account.is_credit ) %] - Print + Print [% ELSE %] - Print + Print [% END %] Details [% IF account.is_debit && account.amountoutstanding > 0 %] @@ -329,7 +329,7 @@