Comparation of date and datetime is always false
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Exported file contains the list of checked in items.
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
$line{barcode} = $issue->{'barcode'};
$line{volumeddesc} = $issue->{'volumeddesc'};
push(@loop_reading,\%line);
- if (($input->param('op') eq 'export_barcodes') and ($today eq $issue->{'returndate'})) {
+ my $return_dt = Koha::DateUtils::dt_from_string($issue->{'returndate'}, 'iso');
+ if ( ( $input->param('op') eq 'export_barcodes' ) and ( $today eq $return_dt->ymd() ) ) {
push( @barcodes, $issue->{'barcode'} );
}
}