Bugzilla – Attachment 7422 Details for
Bug 6490
Lost and paid not updated when book is checked out without check-in
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6490 - Lost and paid not updated when book is checked out.
Bug-6490---Lost-and-paid-not-updated-when-book-is-.patch (text/plain), 1.35 KB, created by
Liz Rea
on 2012-02-02 17:58:47 UTC
(
hide
)
Description:
Bug 6490 - Lost and paid not updated when book is checked out.
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2012-02-02 17:58:47 UTC
Size:
1.35 KB
patch
obsolete
>From 3fac74413fff1440485ca9d6e95249614551f4e6 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle.m.hall@gmail.com> >Date: Thu, 2 Feb 2012 10:15:43 -0500 >Subject: [PATCH] Bug 6490 - Lost and paid not updated when book is checked out. >Content-Type: text/plain; charset="utf-8" > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> > >Tested: > >item checked out and marked lost - item is removed from borrower's checkouts and charged to patron >Checking out the item (without checking it in first) removed the fines and issued the item normally. > >Passed prove t xt t/db_dependent (results congruent with current master failures) >--- > C4/Circulation.pm | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 0b5068c..e0f01c5 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1025,6 +1025,12 @@ sub AddIssue { > CartToShelf( $item->{'itemnumber'} ); > } > $item->{'issues'}++; >+ >+ ## If item was lost, it has now been found, reverse any list item charges if neccessary. >+ if ( $item->{'itemlost'} ) { >+ _FixAccountForLostAndReturned( $item->{'itemnumber'}, undef, $item->{'barcode'} ); >+ } >+ > ModItem({ issues => $item->{'issues'}, > holdingbranch => C4::Context->userenv->{'branch'}, > itemlost => 0, >-- >1.7.2.5
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 6490
:
7421
| 7422