|
Lines 547-552
if ( @$barcodes && $op eq 'cud-checkout' ) {
Link Here
|
| 547 |
if ( my $booked = $needsconfirmation->{BOOKED_EARLY} // $alerts->{BOOKED} ) { |
547 |
if ( my $booked = $needsconfirmation->{BOOKED_EARLY} // $alerts->{BOOKED} ) { |
| 548 |
$datedue = $booked->end_date; |
548 |
$datedue = $booked->end_date; |
| 549 |
} |
549 |
} |
|
|
550 |
|
| 551 |
# If renewing an item on hold, use renewonholdduedate (similar to renew.pl) |
| 552 |
# This handles the same issue as Bug 37966 for circ/renew.pl |
| 553 |
if ( $needsconfirmation->{RENEW_ISSUE} && $needsconfirmation->{RESERVED} ) { |
| 554 |
|
| 555 |
# Use duedatespec if SpecifyDueDate is enabled and duedatespec is provided |
| 556 |
# Otherwise use renewonholdduedate (may be empty string, letting AddRenewal calculate) |
| 557 |
if ( !( $duedatespec_allow && $duedatespec ) ) { |
| 558 |
$datedue = $query->param('renewonholdduedate'); |
| 559 |
} |
| 560 |
} |
| 550 |
$needsconfirmation->{'DEBT'} = $needsconfirmationDEBT if ($debt_confirmed); |
561 |
$needsconfirmation->{'DEBT'} = $needsconfirmationDEBT if ($debt_confirmed); |
| 551 |
my $issue = AddIssue( |
562 |
my $issue = AddIssue( |
| 552 |
$patron, $barcode, $datedue, |
563 |
$patron, $barcode, $datedue, |