Bug 14826: Resurrect account offsets table
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 12 Jul 2016 14:48:03 +0000 (14:48 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 20 Oct 2017 19:54:33 +0000 (16:54 -0300)
commit0dccc8ec5b2a4347cbc78e08aa905b79f1136787
treec85597e56ee0f8a86e8241aa842e5bb78a9fc1e7
parentca34994f23702ba4edeac7d7c5340c2bf7637d07
Bug 14826: Resurrect account offsets table

The account offsets table should be used to track increments and
decrements of fines via payments and credits, as well as fine accruals.
It should be able to match fees to payments and visa versa, so we can
know which fee was paid by a given payment, and which payments applied
to a given fee.

Test Plan:
1) Apply this patch
2) Run updatedatabase
3) Note the table accountoffsets has been renamed to account_offsets
4) Ensure fine generation creates offsets
5) Ensure creating a manual invoice creates an offset
6) Ensure a lost item charge creates an offset
7) Ensure Reverse Payment creates an offset
8) Ensure a payment creates an offset
9) Ensure a payment for multiple fees creates an offset for each
10) Ensure writeoffs create offsets

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Accounts.pm
C4/Circulation.pm
C4/Overdues.pm
Koha/Account.pm