Bugzilla – Attachment 88970 Details for
Bug 21014
Availability of hidden items showing in OPAC results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21042: Make 'pay amount' also return lost fines
Bug-21042-Make-pay-amount-also-return-lost-fines.patch (text/plain), 1.32 KB, created by
Marie-Luce Laflamme
on 2019-04-26 21:30:24 UTC
(
hide
)
Description:
Bug 21042: Make 'pay amount' also return lost fines
Filename:
MIME Type:
Creator:
Marie-Luce Laflamme
Created:
2019-04-26 21:30:24 UTC
Size:
1.32 KB
patch
obsolete
>From d3be9d087ef603b4641a62122cd66675335818ef Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 5 Jul 2018 18:05:11 +0000 >Subject: [PATCH] Bug 21042: Make 'pay amount' also return lost fines > >To test: >1 - Checkout an item to a patron, and make it lost ( but not returned) > and ensure fine is levied against the account >2 - Add some other fines to their account >3 - Click 'Pay amount' and pay everything they owe >4 - Note the book is not returned >5 - Repeat with 'Pay selected' and note item is returned >6 - Apply patch >7 - Repeat 1-5 and note item is returned in both cases > >https://bugs.koha-community.org/show_bug.cgi?id=21014 >--- > Koha/Account.pm | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/Koha/Account.pm b/Koha/Account.pm >index 4da0c1c5ad..431d088a47 100644 >--- a/Koha/Account.pm >+++ b/Koha/Account.pm >@@ -164,6 +164,11 @@ sub pay { > $fine->amountoutstanding( $old_amountoutstanding - $amount_to_pay ); > $fine->store(); > >+ if ( $fine->itemnumber && $fine->accounttype && ( $fine->accounttype eq 'Rep' || $fine->accounttype eq 'L' ) ) >+ { >+ C4::Circulation::ReturnLostItem( $self->{patron_id}, $fine->itemnumber ); >+ } >+ > my $account_offset = Koha::Account::Offset->new( > { > debit_id => $fine->id, >-- >2.17.1
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 21014
:
76552
|
76553
|
88970
|
88971
|
88972