Bug 6934: fix errors pointed out by the QA script
authorBouzid Fergani <bouzid.fergani@inlibro.com>
Thu, 28 Jul 2016 13:38:01 +0000 (09:38 -0400)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Oct 2016 11:50:26 +0000 (11:50 +0000)
Also fix forbidden patterns in koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt

Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reports/reports-home.tt
reports/cash_register_stats.pl

index 01e0e4a..5de0626 100644 (file)
@@ -287,7 +287,7 @@ $(document).ready(function() {
         <tr>
             [% IF transaction_type == "ACT" %]
             <th colspan="7" style="text-align:right;">TOTAL</th>
-            <th style="text-align:right;">[% total %]</th>
+            <th style="text-align:right;">[% total  | $Price %]</th>
             <th colspan="3">&nbsp;</th>
             [% END %]
         </tr>
index 1409a09..9ce5d66 100644 (file)
             <li><a href="/cgi-bin/koha/reports/dictionary.pl?phase=View%20Dictionary">View dictionary</a></li>
         </ul>
 
-       <h2>Statistics wizards</h2>
-       <ul>
-               <li><a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions</a></li>
-               <li><a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons</a></li>
-               <li><a href="/cgi-bin/koha/reports/catalogue_stats.pl">Catalog</a></li>
-               <li><a href="/cgi-bin/koha/reports/issues_stats.pl">Circulation</a></li>
-               <li><a href="/cgi-bin/koha/reports/serials_stats.pl">Serials</a></li>
-        <li><a href="/cgi-bin/koha/reports/cash_register_stats.pl">Cash register</a></li>
-               <li><a href="/cgi-bin/koha/reports/reserves_stats.pl">Holds</a></li>
+        <h2>Statistics wizards</h2>
+        <ul>
+            <li><a href="/cgi-bin/koha/reports/acquisitions_stats.pl">Acquisitions</a></li>
+            <li><a href="/cgi-bin/koha/reports/borrowers_stats.pl">Patrons</a></li>
+            <li><a href="/cgi-bin/koha/reports/catalogue_stats.pl">Catalog</a></li>
+            <li><a href="/cgi-bin/koha/reports/issues_stats.pl">Circulation</a></li>
+            <li><a href="/cgi-bin/koha/reports/serials_stats.pl">Serials</a></li>
+            <li><a href="/cgi-bin/koha/reports/cash_register_stats.pl">Cash register</a></li>
+            <li><a href="/cgi-bin/koha/reports/reserves_stats.pl">Holds</a></li>
       </ul>
 
         [% IF UseKohaPlugins %]
-        <h2>Report plugins</h2>
-        <ul>
+            <h2>Report plugins</h2>
+            <ul>
                 <li><a href="/cgi-bin/koha/plugins/plugins-home.pl?method=report">Report plugins</a></li>
-        </ul>
+            </ul>
         [% END %]
 
     </div>
index 40ee489..ac5ea90 100755 (executable)
@@ -137,13 +137,11 @@ if ($do_it) {
             total => $grantotal,
         );
     } else{
-        my $q_errors;
         my $format = 'csv';
         my $reportname = $input->param('basename');
         my $reportfilename = $reportname ? "$reportname.$format" : "reportresults.$format" ;
         #my $reportfilename = "$reportname.html" ;
         my $delimiter = C4::Context->preference('delimiter') || ',';
-        my ( $content );
             my @rows;
             foreach my $row (@loopresult) {
                 my @rowValues;