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 |
|