Bug 21468: Add 'checkin' action for _after_circ_actions
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
536471ec07
commit
614b64ed17
1 changed files with 16 additions and 0 deletions
|
@ -2143,6 +2143,22 @@ sub AddReturn {
|
|||
$messages->{'ResFound'} = $resrec;
|
||||
}
|
||||
|
||||
_after_circ_actions(
|
||||
{
|
||||
action => 'checkin',
|
||||
payload => {
|
||||
library_id => C4::Context->userenv->{'branch'},
|
||||
item_id => $item->itemnumber,
|
||||
item_type => $item->effective_itemtype,
|
||||
shelving_location => $item->location // q{},
|
||||
patron_id => $borrowernumber,
|
||||
collection_code => $item->ccode // q{},
|
||||
date_returned => $return_date,
|
||||
date_due => $issue ? $issue->date_due : q{}
|
||||
}
|
||||
}
|
||||
) if C4::Context->config("enable_plugins");
|
||||
|
||||
# Record the fact that this book was returned.
|
||||
UpdateStats({
|
||||
branch => $branch,
|
||||
|
|
Loading…
Reference in a new issue