Bug 18789: Send Koha::Patron object to the templates
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / members / printinvoice.tt
index acb8fd2..62fb69d 100644 (file)
@@ -1,7 +1,8 @@
 [% USE Koha %]
+[% USE Branches %]
 [% SET footerjs = 1 %]
 [% INCLUDE 'doc-head-open.inc' %]
-<title>Print receipt for [% cardnumber %]</title>
+<title>Print receipt for [% patron.cardnumber %]</title>
 [% INCLUDE 'doc-head-close.inc' %]
 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/printreceiptinvoice_[% KOHA_VERSION %].css" />
 </head>
   </tr>
   <tr>
     <th colspan="5" class="centerednames">
-               [% IF ( branchname ) %]<h2>[% branchname %]</h2>[% END %]
+        <h2>[% Branches.GetName( patron.branchcode ) %]</h2>
        </th>
   </tr>
   <tr>
     <th colspan="5" >
-        Bill to: [% firstname %] [% surname %] <br />
-        Card number: [% cardnumber %]<br />
+        Bill to: [% patron.firstname %] [% patron.surname %] <br />
+        Card number: [% patron.cardnumber %]<br />
        </th>
   </tr>
   <tr>