Bugzilla – Attachment 100255 Details for
Bug 23112
Add circulation process to inter-library loans
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23112: Update request status on return
Bug-23112-Update-request-status-on-return.patch (text/plain), 2.27 KB, created by
Nick Clemens (kidclamp)
on 2020-03-06 11:37:18 UTC
(
hide
)
Description:
Bug 23112: Update request status on return
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2020-03-06 11:37:18 UTC
Size:
2.27 KB
patch
obsolete
>From 3cb19bf86d5d4070a381a4417810af02fbae636f Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Mon, 29 Jul 2019 09:10:04 +0100 >Subject: [PATCH] Bug 23112: Update request status on return > >This patch updates a request's status to RET upon return > >Sponsored-by: Loughborough University > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > C4/Circulation.pm | 10 ++++++++++ > Koha/Illrequest.pm | 11 ++++++++++- > 2 files changed, 20 insertions(+), 1 deletion(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 405528675e..2046c3f202 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -44,6 +44,7 @@ use Koha::Biblioitems; > use Koha::DateUtils; > use Koha::Calendar; > use Koha::Checkouts; >+use Koha::Illrequests; > use Koha::Items; > use Koha::Patrons; > use Koha::Patron::Debarments; >@@ -2130,6 +2131,15 @@ sub AddReturn { > DelUniqueDebarment({ borrowernumber => $borrowernumber, type => 'OVERDUES' }); > } > >+ # Check if this item belongs to a biblio record that is attached to an >+ # ILL request, if it is we need to update the ILL request's status >+ if (C4::Context->preference('CirculateILL')) { >+ my $request = Koha::Illrequests->find( >+ { biblio_id => $item->biblio->biblionumber } >+ ); >+ $request->status('RET') if $request; >+ } >+ > # Transfer to returnbranch if Automatic transfer set or append message NeedsTransfer > if (!$is_in_rotating_collection && ($doreturn or $messages->{'NotIssued'}) and !$resfound and ($branch ne $returnbranch) and not $messages->{'WrongTransfer'}){ > my $BranchTransferLimitsType = C4::Context->preference("BranchTransferLimitsType") eq 'itemtype' ? 'effective_itemtype' : 'ccode'; >diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm >index 998422a788..a0c9402322 100644 >--- a/Koha/Illrequest.pm >+++ b/Koha/Illrequest.pm >@@ -498,7 +498,16 @@ sub _core_status_graph { > method => 'check_out', > next_actions => [ ], > ui_method_icon => 'fa-upload', >- } >+ }, >+ RET => { >+ prev_actions => [ 'CHK' ], >+ id => 'RET', >+ name => 'Returned to library', >+ ui_method_name => 'Check in', >+ method => 'check_in', >+ next_actions => [ 'COMP' ], >+ ui_method_icon => 'fa-download', >+ } > }; > } > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23112
:
91987
|
91988
|
91989
|
91990
|
91991
|
92000
|
92001
|
92002
|
92003
|
92004
|
93530
|
93531
|
93532
|
93533
|
93534
|
93958
|
94264
|
94265
|
94266
|
94267
|
94268
|
94269
|
95565
|
95566
|
95567
|
95568
|
95569
|
95570
|
96834
|
96870
|
99910
|
99911
|
99912
|
99913
|
99914
|
99915
|
99916
|
99917
|
100100
|
100101
|
100102
|
100103
|
100104
|
100105
|
100106
|
100107
|
100108
|
100169
|
100224
|
100225
|
100252
|
100253
|
100254
| 100255 |
100256
|
100257
|
100258
|
100259
|
100260
|
100261
|
100262
|
100263