]> git.koha-community.org Git - koha.git/commit
Bug 25596: Identify overpayment refunds for translation
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 9 Sep 2020 13:34:34 +0000 (14:34 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sun, 25 Oct 2020 23:14:41 +0000 (00:14 +0100)
commite3183de77b4bd3ffb164c19b7933aef31039e723
tree30254282d05ed21dc676dccded1a3ce448fdc9d3
parenta71596fb395d449a62f5a6417780ed23948755c4
Bug 25596: Identify overpayment refunds for translation

This patch ensures we can uniquely identify automatic overpayment refund
credits from the accountlines by introducing a new account credit type
and adding appropriate translations for the new code.

Test plan
1/ You'll need an overpayment refund to start...
1a/ Issue yourself and item and set the date due early enough
to create an overdue fine for at least 2 days worth of overdue fines
1b/ Run the fines.pl script to add the fines
1c/ As a patron, pay off the accruing fine
1d/ Return the item ensuring you backdate it at least a day
1e/ Check that there is an 'Overpayment refund' credit on the patrons
account.
2/ Check that the overpayment string is translatable (i.e. it appears in
the accounts include file)

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Account.pm
Koha/Account/Line.pm
installer/data/mysql/atomicupdate/bug_25596.perl [new file with mode: 0644]
installer/data/mysql/mandatory/account_credit_types.sql
installer/data/mysql/mandatory/account_offset_types.sql
koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc
koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc
t/db_dependent/Koha/Account/Line.t