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:
parent
286f911b2d
commit
eb31ecc5cf
|
|
@ -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'} );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue