diff --git a/C4/Circulation.pm b/C4/Circulation.pm index b454ff241f..a62a1acf63 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -1248,17 +1248,18 @@ sub CanBookBeIssued { } else { $alerts{'BOOKED'} = $booking; } + } - } else { - - # Loan falls inside booking - if ( $now > $booking_start ) { - $issuingimpossible{'BOOKED_TO_ANOTHER'} = $booking; + # Booked to another patron + else { + # Booking starts before due date, reduce loan? + if ( $now < $booking_start && $duedate > $booking_start ) { + $needsconfirmation{'BOOKED_TO_ANOTHER'} = $booking; } - # Booking starts before due date, reduce loan? + # Loan falls inside booking else { - $needsconfirmation{'BOOKED_TO_ANOTHER'} = $booking; + $issuingimpossible{'BOOKED_TO_ANOTHER'} = $booking; } } } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index e94e5554d0..f51c70c1d2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -612,7 +612,7 @@ [% END %] [% IF ( BOOKED_TO_ANOTHER ) %] -