Bug 21747: (follow-up) Intelligent rename of offsets
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 4 Feb 2019 14:29:08 +0000 (14:29 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 27 Feb 2019 14:14:21 +0000 (09:14 -0500)
commit1a385cae8d8e84cdf48824c8897545ff5e25471c
tree7e9bd5a89bbefbcd52d1dbd7e38bee17e3153d39
parentb3969c52f8aaa956e4dc8d1f6ed15fc40003013b
Bug 21747: (follow-up) Intelligent rename of offsets

This patch intelligently renames the account_offset types for updateing
fines from `Fine Update` to `fine_increment` and `fine_decrement`
depending on the sign of the calculated difference of the adjustment.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Overdues.pm
Koha/Account/Line.pm
installer/data/mysql/atomicupdate/bug_21747.perl [new file with mode: 0644]
t/db_dependent/Koha/Account/Lines.t