@@ -, +, @@ --- C4/Circulation.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) --- a/C4/Circulation.pm +++ a/C4/Circulation.pm @@ -1496,6 +1496,23 @@ sub AddIssue { } } + _after_circ_actions( + { + action => 'checkout', + payload => { + type => ( $onsite_checkout ? 'onsite_checkout' : 'issue' ), + library_id => C4::Context->userenv->{'branch'}, + charge => $charge, + item_id => $item_object->itemnumber, + item_type => $item_object->effective_itemtype, + shelving_location => $item_object->location // q{}, + patron_id => $borrower->{'borrowernumber'}, + collection_code => $item_object->ccode // q{}, + date_due => $datedue + } + } + ) if C4::Context->config("enable_plugins"); + # Record the fact that this book was issued. &UpdateStats( { --