[Bug 3527] New: writeoff doesn't handle locally-defined manual invoice types well
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3527 Summary: writeoff doesn't handle locally-defined manual invoice types well Product: Koha Version: HEAD Platform: All OS/Version: Linux - Debian Status: NEW Severity: normal Priority: PATCH-Sent Component: Patrons AssignedTo: dbavousett@ptfs.com ReportedBy: dbavousett@ptfs.com Estimated Hours: 0.25 Change sponsored?: --- In sub writeoff in members/pay.pl, there is a long WHERE clause looking for a long list of legacy accounttypes. This prevents writeoff of any locally-defined ones. Furthermore, this clause is un-needed, as the only calls to this subroutine will already be for positive-value amountoutstanding, since that's what pay.pl will be displaying to the user, and we already have the accountnum and borrowernum. Patch will be on the way momentarily, but here is the diff: diff --git a/members/pay.pl b/members/pay.pl --- a/members/pay.pl +++ b/members/pay.pl @@ -199,7 +199,7 @@ sub writeoff { undef $itemnum unless $itemnum; # if no item is attached to fine, make sure to store it as a NULL my $sth = $dbh->prepare( -"Update accountlines set amountoutstanding=0 where (accounttype='Res' OR accounttype='FU' OR accounttype ='IP' OR accounttype='CH' OR accounttype='N' OR accounttype='F +"Update accountlines set amountoutstanding=0 where accountno=? and borrowernumber=?" ); $sth->execute( $accountnum, $borrowernumber ); $sth->finish; -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3527 Galen Charlton <gmcharlt@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gmcharlt@gmail.com Status|NEW |ASSIGNED --- Comment #1 from Galen Charlton <gmcharlt@gmail.com> 2009-08-13 01:42:17 --- Patch pushed to HEAD. To speculate on the original motivation for permitting writeoffs only for specific account times, I would guess that it was a matter of policy. I can see that a library might want to define certain types as ineligible for writeoffs, but that should be configurable, not hardcoded. One exception might be if/when Koha supports true accrued overdue fines, in which case you might not want to permit writeoffs, at least not without deciding what happens to the item's status. -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3527 Nicole C. Engard <nengard@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nengard@gmail.com --- Comment #2 from Nicole C. Engard <nengard@gmail.com> 2009-08-19 16:47:20 --- Does this also fix this bug? http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=2632 -- Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (2)
-
bugzilla-daemon@kohaorg.ec2.liblime.com -
bugzilla-daemon@liblime.com