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

(-)a/C4/Circulation.pm (-7 / +10 lines)
Lines 1262-1275 sub CanBookBeIssued { Link Here
1262
            }
1262
            }
1263
        }
1263
        }
1264
1264
1265
        # Booking starts before due date, reduce loan?
1265
        # Booked to another patron
1266
        elsif ( $duedate > dt_from_string( $booking->start_date ) ) {
1267
            $needsconfirmation{'BOOKED_TO_ANOTHER'} = $booking;
1268
        }
1269
1270
        # Loan falls inside booking
1271
        else {
1266
        else {
1272
            $issuingimpossible{'BOOKED_TO_ANOTHER'} = $booking;
1267
            # Booking starts before due date, reduce loan?
1268
            if ( $now < dt_from_string( $booking->start_date ) && $duedate > dt_from_string( $booking->start_date ) ) {
1269
                $needsconfirmation{'BOOKED_TO_ANOTHER'} = $booking;
1270
            }
1271
1272
            # Loan falls inside booking
1273
            else {
1274
                $issuingimpossible{'BOOKED_TO_ANOTHER'} = $booking;
1275
            }
1273
        }
1276
        }
1274
    }
1277
    }
1275
1278
(-)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