Bugzilla – Attachment 7310 Details for
Bug 7190
written off fines being refunded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-bug_7190-Do-not-reverse-writeoffs-when-item-is-retur.patch (text/plain), 1.20 KB, created by
Srdjan Jankovic
on 2012-01-24 03:49:11 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2012-01-24 03:49:11 UTC
Size:
1.20 KB
patch
obsolete
>From 07df9956822a484d1a983ff4c11e38cfdc1741de Mon Sep 17 00:00:00 2001 >From: Srdjan Jankovic <srdjan@catalyst.net.nz> >Date: Tue, 24 Jan 2012 16:46:21 +1300 >Subject: [PATCH] bug_7190: Do not reverse writeoffs when item is returned > >--- > C4/Circulation.pm | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 0b5068c..2282d5c 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1866,10 +1866,11 @@ sub _FixAccountForLostAndReturned { > my $item_id = @_ ? shift : $itemnumber; # Send the barcode if you want that logged in the description > my $dbh = C4::Context->dbh; > # check for charge made for lost book >- my $sth = $dbh->prepare("SELECT * FROM accountlines WHERE (itemnumber = ?) AND (accounttype='L' OR accounttype='Rep') ORDER BY date DESC"); >+ my $sth = $dbh->prepare("SELECT * FROM accountlines WHERE itemnumber = ? AND accounttype IN ('L', 'Rep', 'W') ORDER BY date DESC"); > $sth->execute($itemnumber); > my $data = $sth->fetchrow_hashref; > $data or return; # bail if there is nothing to do >+ $data->{accounttype} eq 'W' and return; # Written off > > # writeoff this amount > my $offset; >-- >1.6.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 7190
:
7310
|
7395
|
7404