Bug 7597 - Part 2 - move sub writeoff to C4::Accounts
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 28 Feb 2012 14:17:04 +0000 (09:17 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 21 Mar 2012 16:13:33 +0000 (17:13 +0100)
commitdb946ffd58094ec6287f991493a8df7bd7298f71
treea8f018d75c7ec6c68883683440d86580e88e067b
parent870006e50f244d5910c2481a2553e58a589ffd47
Bug 7597 - Part 2 - move sub writeoff to C4::Accounts

Currently, the subroutine writeoff lives in pay.pl, which
is a violation of the Koha coding guidelines, as it writes
to the database. This commit restructures and moves writeoff
to C4::Accounts::WriteOff(), and modifies pay.pl to use it.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Tested all three patches together and was able to write off single
and multiple fines and the data was correct in the stats table.
C4/Accounts.pm
members/pay.pl