]> 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>
Tue, 8 May 2012 21:49:08 +0000 (17:49 -0400)
commit7aec3044b9dd5268f0b300e7c00aeb8d238c5b8e
tree8e5de68137cfdbc33ed54ddd6cf7056aab8ff16d
parent535c4a7aa1a40a69a1f5f47701ba9d24bc32ae26
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