Lines 415-430
if ($barcode && $op eq 'cud-checkin') {
Link Here
|
415 |
|
415 |
|
416 |
} elsif ( C4::Context->preference('ShowAllCheckins') and !$messages->{'BadBarcode'} and !$needs_confirm and !$bundle_confirm ) { |
416 |
} elsif ( C4::Context->preference('ShowAllCheckins') and !$messages->{'BadBarcode'} and !$needs_confirm and !$bundle_confirm ) { |
417 |
my $duedate = 0; |
417 |
my $duedate = 0; |
418 |
if( $issue ){ |
418 |
if ($issue) { |
419 |
my $date_due_dt = dt_from_string( $issue->date_due, 'sql' ); |
419 |
my $date_due_dt = dt_from_string( $issue->date_due, 'sql' ); |
420 |
$duedate = $date_due_dt->strftime('%Y-%m-%d %H:%M'); |
420 |
$duedate = $date_due_dt->strftime('%Y-%m-%d %H:%M'); |
421 |
$input{borrowernumber} = $issue->borrowernumber; |
421 |
$input{borrowernumber} = $issue->borrowernumber; |
422 |
$riborrowernumber{0} = $borrower->{'borrowernumber'}; |
422 |
$riborrowernumber{0} = $borrower->{'borrowernumber'}; |
423 |
} |
423 |
} |
424 |
$input{duedate} = $duedate; |
424 |
$input{duedate} = $duedate; |
425 |
$input{not_returned} = 1; |
425 |
$input{not_returned} = 1; |
426 |
$returneditems{0} = $barcode; |
426 |
$returneditems{0} = $barcode; |
427 |
$riduedate{0} = $duedate; |
427 |
$riduedate{0} = $duedate; |
428 |
push( @inputloop, \%input ); |
428 |
push( @inputloop, \%input ); |
429 |
} |
429 |
} |
430 |
$template->param( privacy => $borrower->{privacy} ); |
430 |
$template->param( privacy => $borrower->{privacy} ); |
431 |
- |
|
|