Bug 8154: The export today's checked in barcodes generated file is always empty

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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Jonathan Druart 2012-06-18 10:19:12 +02:00 committed by Chris Cormack
parent 286f911b2d
commit eb31ecc5cf
1 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,8 @@ foreach my $issue (@{$issues}){
$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'} );
}
}