From 2acbee523fbb311a63c4e3f9326fe410cf4ff832 Mon Sep 17 00:00:00 2001 From: Vassilis Kanellopoulos Date: Mon, 9 Nov 2015 11:20:21 +0200 Subject: [PATCH] Bug 15136: Add homebranch of borrowed items to patron accounts tab Test plan: 1 - View the accounts tab for a patron with fines 2 - Note there is no homebranch displayed to see where charges came from 3 - Apply patch 4 - Reload the page and note that you see the 'Home library' column Signed-off-by: Maryse Simard Followed the test plan and it works. Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/modules/members/boraccount.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 a7f508d7ae..5bc592be80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -1,5 +1,6 @@ [% USE Asset %] [% USE Koha %] +[% USE Branches %] [% USE KohaDates %] [% USE ColumnsSettings %] [% USE AuthorisedValues %] @@ -19,6 +20,7 @@
+
@@ -40,6 +42,7 @@ Date Description of charges + Home library Note Amount Outstanding @@ -61,6 +64,7 @@ [%- 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 %] + [% IF account.itemnumber %][% Branches.GetName( account.item.homebranch ) %][% END %] [% account.note | html_line_break %] [% IF ( account.amountcredit ) %][% ELSE %][% END %][% account.amount | $Price %] [% IF ( account.amountoutstandingcredit ) %][% ELSE %][% END %][% account.amountoutstanding | $Price %] @@ -89,7 +93,7 @@ [% END %] - Total due + Total due [% IF ( totalcredit ) %] [% total | $Price %] [% ELSE %] -- 2.39.5