[Koha-bugs] [Bug 2696] Fine Payments Should Show What Was Paid For

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Apr 15 19:50:48 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=2696

Marc Véron <veron at veron.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |veron at veron.ch

--- Comment #2 from Marc Véron <veron at veron.ch> ---
At the moment the implementation is as follows (Acounts.pm line 65 ff and other
places):

--Snip----
Amounts owed are paid off oldest first. That is, if the patron has a
$1 fine from Feb. 1, another $1 fine from Mar. 1, and makes a payment
of $1.50, then the oldest fine will be paid off in full, and $0.50
will be credited to the next one.

(...)

# FIXME - I'm not at all sure about the above, because I don't
# understand what the acct* tables in the Koha database are for.

--End Snip ----

I tried to understand what happens in the code, and I came to the conclusion
that the most important thing is a missing primary key in the table
accountlines.

This key could be transported through the chain of forms and involved code
files to match payments with the fines the payments are made for.

I a primary key in the table accountlines could be the basis to solve other
bugs as well:

- Bug 7531 - Reversing partial payments is buggy
- (?) Bug 6413 - Notes in Fines doing wonky things
- (?) Bug 2598 - Pay Fines allows payment against accruing fine.
- (?) Bug 7205 - can't reverse manual credits 
- (?) Bug 7565 - Fee/fines receipt for printing
- (?) Bug 6273 - SIP2 Fee Paid and Fee Paid Response support
- Bug 3498 - Allow partial fine payments
- Bug 2169 - Paying only partial fines (Duplicate of 3498)

Maybe already addressed by: Bug 6427 - Rewrite of the accounts system ?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list