@@ -, +, @@
unused C4::Budgets getCurrency
---
.../intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt | 8 ++++----
reports/cash_register_stats.pl | 6 ++----
2 files changed, 6 insertions(+), 8 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt
@@ -85,13 +85,13 @@ $(document).ready(function() {
-
-
-
+
+
[% INCLUDE 'date-format.inc' %]
-
-
-
+
+
[% INCLUDE 'date-format.inc' %]
--- a/reports/cash_register_stats.pl
+++ a/reports/cash_register_stats.pl
@@ -24,7 +24,6 @@ use C4::Koha;
use C4::Circulation;
use DateTime;
use Koha::DateUtils;
-use C4::Budgets qw/GetCurrency GetCurrencies/;
use Text::CSV::Encoded;
#use Data::Dumper;
#use Smart::Comments;
@@ -64,9 +63,9 @@ my $manualinv_types = $sth_manualinv->fetchall_arrayref({});
if ($do_it) {
- $fromDate = output_pref({ dt => eval { dt_from_string($input->param("filter_date_begin")) } || dt_from_string,
+ $fromDate = output_pref({ dt => eval { dt_from_string($input->param("from")) } || dt_from_string,
dateformat => 'sql', dateonly => 1 }); #for sql query
- $toDate = output_pref({ dt => eval { dt_from_string($input->param("filter_date_end")) } || dt_from_string,
+ $toDate = output_pref({ dt => eval { dt_from_string($input->param("to")) } || dt_from_string,
dateformat => 'sql', dateonly => 1 }); #for sql query
my $whereTType = '';
@@ -132,7 +131,6 @@ if ($do_it) {
#}
}
- my @currency = GetCurrency();
$grantotal = sprintf("%.2f", $grantotal);
if($output eq 'screen'){
--