Bugzilla – Attachment 110510 Details for
Bug 25767
Add Koha::Item::Transfer->receive method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25767: Add Koha::Item::Transfer->receipt method
Bug-25767-Add-KohaItemTransfer-receipt-method.patch (text/plain), 1.13 KB, created by
Katrin Fischer
on 2020-09-21 20:59:19 UTC
(
hide
)
Description:
Bug 25767: Add Koha::Item::Transfer->receipt method
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-09-21 20:59:19 UTC
Size:
1.13 KB
patch
obsolete
>From a329d4eb9d74597127d0ada367699979328ee9c0 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 20 Jan 2020 15:51:39 +0000 >Subject: [PATCH] Bug 25767: Add Koha::Item::Transfer->receipt method > >Signed-off-by: Kathleen Milne <kathleen.milne@cne-siar.gov.uk> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > Koha/Item/Transfer.pm | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > >diff --git a/Koha/Item/Transfer.pm b/Koha/Item/Transfer.pm >index 669559d15b..80ba0458ba 100644 >--- a/Koha/Item/Transfer.pm >+++ b/Koha/Item/Transfer.pm >@@ -84,6 +84,25 @@ sub transit { > return $self; > } > >+=head3 receipt >+ >+Receive the transfer by setting the datearrived time. >+ >+=cut >+ >+sub receipt { >+ my ($self) = @_; >+ >+ # Throw exception if item is checked out >+ Koha::Exceptions::Item::Transfer::Out->throw() if ($self->item->checkout); >+ >+ # Update the receipt state >+ $self->set({ datearrived => dt_from_string })->store; >+ >+ ModDateLastSeen( $self->item->itemnumber ); >+ return $self; >+} >+ > =head3 type > > =cut >-- >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 25767
:
105905
|
105906
|
107244
|
107245
|
107299
|
107300
|
110277
|
110278
|
110299
|
110300
|
110397
|
110398
|
110399
|
110510
|
110511
|
110512
|
116550
|
116551
|
116552
|
117571
|
117583