View | Details | Raw Unified | Return to bug 35394
Collapse All | Expand All

(-)a/C4/Circulation.pm (-7 / +8 lines)
Lines 1248-1264 sub CanBookBeIssued { Link Here
1248
            } else {
1248
            } else {
1249
                $alerts{'BOOKED'} = $booking;
1249
                $alerts{'BOOKED'} = $booking;
1250
            }
1250
            }
1251
        }
1251
1252
1252
        } else {
1253
        # Booked to another patron
1253
1254
        else {
1254
            # Loan falls inside booking
1255
            # Booking starts before due date, reduce loan?
1255
            if ( $now > $booking_start ) {
1256
            if ( $now < $booking_start && $duedate > $booking_start ) {
1256
                $issuingimpossible{'BOOKED_TO_ANOTHER'} = $booking;
1257
                $needsconfirmation{'BOOKED_TO_ANOTHER'} = $booking;
1257
            }
1258
            }
1258
1259
1259
            # Booking starts before due date, reduce loan?
1260
            # Loan falls inside booking
1260
            else {
1261
            else {
1261
                $needsconfirmation{'BOOKED_TO_ANOTHER'} = $booking;
1262
                $issuingimpossible{'BOOKED_TO_ANOTHER'} = $booking;
1262
            }
1263
            }
1263
        }
1264
        }
1264
    }
1265
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +1 lines)
Lines 612-618 Link Here
612
                                [% END %]
612
                                [% END %]
613
613
614
                                [% IF ( BOOKED_TO_ANOTHER ) %]
614
                                [% IF ( BOOKED_TO_ANOTHER ) %]
615
                                    <li>!!A booking exists!!</li>
615
                                    <li>The item is booked for another patron</li>
616
                                [% END %]
616
                                [% END %]
617
                            </ul>
617
                            </ul>
618
                        </div> <!-- /#circ_impossible -->
618
                        </div> <!-- /#circ_impossible -->
619
- 

Return to bug 35394