Lines 264-277
sub checkin {
Link Here
|
264 |
$patron->{items} = [ grep { $_ ne $item_id } @{ $patron->{items} } ]; |
264 |
$patron->{items} = [ grep { $_ ne $item_id } @{ $patron->{items} } ]; |
265 |
|
265 |
|
266 |
my $message = ''; |
266 |
my $message = ''; |
267 |
if ($account->{show_checkin_message}) { |
267 |
if ( $account->{show_checkin_message} ) { |
268 |
my $permanent_location; |
268 |
my $permanent_location; |
269 |
if (C4::Context->preference("UseLocationAsAQInSIP")) { |
269 |
if ( C4::Context->preference("UseLocationAsAQInSIP") ) { |
270 |
$permanent_location = $item->{'permanent_location'}; |
270 |
$permanent_location = $item->{'permanent_location'}; |
271 |
} else { |
271 |
} else { |
272 |
$permanent_location = Koha::Libraries->find($item->{permanent_location})->branchname; |
272 |
$permanent_location = Koha::Libraries->find( $item->{permanent_location} )->branchname; |
273 |
} |
273 |
} |
274 |
$message .= "Item checked-in: " . $permanent_location . " - " . $item->{location} . "."; |
274 |
$message .= "Item checked-in: $permanent_location - $item->{location}."; |
275 |
} |
275 |
} |
276 |
|
276 |
|
277 |
# Check for overdue fines to display |
277 |
# Check for overdue fines to display |
278 |
- |
|
|