From 90d8667cf9bd8fa7ca2032080162f16967405f8a 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. Test plan Slips should continue to print as they did prior to the patch 1/ Add a manual invoice and manual debit to a patrons account 2/ Print a slip for the manual invoice, compare to a printed slip prior to the patch. 3/ Print a slip for the manual debit, compare to a printed slip prior to the patch. 4/ Signoff. Signed-off-by: Kyle M Hall Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- .../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 6b7fe391e1..0a9ae79eab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -103,9 +103,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 %] @@ -326,7 +326,7 @@