Lines 1767-1772
sub AddIssue {
Link Here
|
1767 |
# In the case that the borrower has an on-site checkout |
1767 |
# In the case that the borrower has an on-site checkout |
1768 |
# and SwitchOnSiteCheckouts is enabled this converts it to a regular checkout |
1768 |
# and SwitchOnSiteCheckouts is enabled this converts it to a regular checkout |
1769 |
$issue = Koha::Checkouts->find( { itemnumber => $item_object->itemnumber } ); |
1769 |
$issue = Koha::Checkouts->find( { itemnumber => $item_object->itemnumber } ); |
|
|
1770 |
|
1771 |
#if this checkout is a booking mark it as completed |
1772 |
if ( |
1773 |
my $booking = $item_object->find_booking( |
1774 |
{ checkout_date => $issuedate, due_date => $datedue, patron_id => $patron->borrowernumber } |
1775 |
) |
1776 |
) |
1777 |
{ |
1778 |
$booking->status('completed')->store; |
1779 |
} |
1780 |
|
1770 |
if ($issue) { |
1781 |
if ($issue) { |
1771 |
$issue->set($issue_attributes)->store; |
1782 |
$issue->set($issue_attributes)->store; |
1772 |
} else { |
1783 |
} else { |
1773 |
- |
|
|