Lines 1386-1391
sub AddIssue {
Link Here
|
1386 |
if ( $actualissue->{borrowernumber}) { |
1386 |
if ( $actualissue->{borrowernumber}) { |
1387 |
# This book is currently on loan, but not to the person |
1387 |
# This book is currently on loan, but not to the person |
1388 |
# who wants to borrow it now. mark it returned before issuing to the new borrower |
1388 |
# who wants to borrow it now. mark it returned before issuing to the new borrower |
|
|
1389 |
my ( $allowed, $message ) = CanBookBeReturned( $item, C4::Context->userenv->{branch} ); |
1390 |
return unless $allowed; |
1389 |
AddReturn( |
1391 |
AddReturn( |
1390 |
$item->{'barcode'}, |
1392 |
$item->{'barcode'}, |
1391 |
C4::Context->userenv->{'branch'} |
1393 |
C4::Context->userenv->{'branch'} |
1392 |
- |
|
|