From 295a8830e62cb31e2ff449dad7aa5c88fbf6e4e6 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Mon, 2 Apr 2018 01:28:59 +0000 Subject: [PATCH] Bug 18889: Simpler counter-patch There is no need to add barcode into the accountlines table, as a relationship via itemnumber can easily look it up. --- koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt | 2 ++ members/pay.pl | 1 + 2 files changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index 34b6d11..e58ad87 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -41,6 +41,7 @@   Fines & charges Description + Barcode Payment note Account type Amount @@ -101,6 +102,7 @@ [%- IF line.description %], [% line.description %][% END %] [% IF line.title %]([% line.title %])[% END %] + [% line.barcode %] [% line.accounttype %] [% line.amount | $Price %] diff --git a/members/pay.pl b/members/pay.pl index 05b73e5..039d5cc 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -135,6 +135,7 @@ sub add_accounts_to_template { my $biblio = $item->biblio; $account_line->{biblionumber} = $biblio->biblionumber; $account_line->{title} = $biblio->title; + $account_line->{barcode} = $item ? $item->barcode : q{}; } push @accounts, $account_line; } -- 2.1.4