]> git.koha-community.org Git - koha.git/commit
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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 5 May 2012 12:14:59 +0000 (08:14 -0400)
commitb4b8e9bb16806f34203be47fe7cac7da5e73eb80
tree8e5de68137cfdbc33ed54ddd6cf7056aab8ff16d
parent5c9cd701dfd8f83e0880f12389c2170bdf65b5fa
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.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Accounts.pm
members/pay.pl