Lines 28-35
use C4::Output;
Link Here
|
28 |
use C4::Koha; |
28 |
use C4::Koha; |
29 |
use C4::Circulation; |
29 |
use C4::Circulation; |
30 |
use C4::Reports; |
30 |
use C4::Reports; |
31 |
use C4::Dates qw/format_date format_date_in_iso/; |
|
|
32 |
use C4::Members; |
31 |
use C4::Members; |
|
|
32 |
use Koha::DateUtils; |
33 |
|
33 |
|
34 |
=head1 NAME |
34 |
=head1 NAME |
35 |
|
35 |
|
Lines 47-56
my $fullreportname = "reports/cat_issues_top.tt";
Link Here
|
47 |
my $limit = $input->param("Limit"); |
47 |
my $limit = $input->param("Limit"); |
48 |
my $column = $input->param("Criteria"); |
48 |
my $column = $input->param("Criteria"); |
49 |
my @filters = $input->param("Filter"); |
49 |
my @filters = $input->param("Filter"); |
50 |
$filters[0]=format_date_in_iso($filters[0]); |
50 |
foreach ( @filters[0..3] ) { |
51 |
$filters[1]=format_date_in_iso($filters[1]); |
51 |
$_ and $_ = eval { output_pref( { dt => dt_from_string ( $_ ), dateonly => 1, dateformat => 'iso' } ); }; |
52 |
$filters[2]=format_date_in_iso($filters[2]); |
52 |
} |
53 |
$filters[3]=format_date_in_iso($filters[3]); |
53 |
|
54 |
my $output = $input->param("output"); |
54 |
my $output = $input->param("output"); |
55 |
my $basename = $input->param("basename"); |
55 |
my $basename = $input->param("basename"); |
56 |
#warn "calcul : ".$calc; |
56 |
#warn "calcul : ".$calc; |
Lines 181-188
sub calculate {
Link Here
|
181 |
if ($i>=2) { |
181 |
if ($i>=2) { |
182 |
$cell{filter} .= @$filters[$i]; |
182 |
$cell{filter} .= @$filters[$i]; |
183 |
} else { |
183 |
} else { |
184 |
$cell{filter} .= format_date(@$filters[$i]); |
184 |
$cell{filter} .= eval { output_pref( { dt => dt_from_string( @$filters[$i] ), dateonly => 1 }); } |
185 |
} $cell{crit} .="Issue From" if ($i==0); |
185 |
if ( @$filters[$i] ); |
|
|
186 |
} |
187 |
$cell{crit} .="Issue From" if ($i==0); |
186 |
$cell{crit} .="Issue To" if ($i==1); |
188 |
$cell{crit} .="Issue To" if ($i==1); |
187 |
$cell{crit} .="Return From" if ($i==2); |
189 |
$cell{crit} .="Return From" if ($i==2); |
188 |
$cell{crit} .="Return To" if ($i==3); |
190 |
$cell{crit} .="Return To" if ($i==3); |