Bug 20703: Add ability to void any credit
authorKyle M Hall <kyle@bywatetsolutions.com>
Thu, 3 May 2018 13:17:06 +0000 (09:17 -0400)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 6 Jul 2018 10:36:07 +0000 (10:36 +0000)
commit462ec9601a43c31ccb12f010b4bddc80dcb71344
tree7bada9bcfb8b622bee8adf9aaf70b2ccaa66d8c8
parent72058d27415a82799d9f6acac693e94dc7bf9309
Bug 20703: Add ability to void any credit

At this time, only payments may be voided. There is no reason to have this limitation. There are situations where a librarian may need to void an accidental writeoff, or perhaps void an automatic credit that was created by Koha. For illustration, this is directly from a partner library:

"For example a lost book refund becomes a credit on account.  Presently the credit may be applied to a fine for a different item charged to patron. We perform a write off to clear the remaining credit, then add the fine back to the account and give the patron a refund for the lost/refunded amount. Our accounting system ask that we keep the Lost funds/refunds separate from all fines."

Test Plan:
1) Create a fine and write it off
2) Note there is no 'void' button for the writeoff
3) Apply this patch
4) Note the buttons now show
5) Test each button on a writeoff

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account/Line.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
members/boraccount.pl
t/db_dependent/Accounts.t