Bug 22200: Add credit when forgiving overdue
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 18 Apr 2019 08:44:01 +0000 (09:44 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 26 Apr 2019 10:28:48 +0000 (10:28 +0000)
commit020da0e81712ca3d6856e31af4cd3b8d18346c01
tree60fbd21d2de5a17fad93717628868b89102d1735
parentf82d6acab668dfb86a227b155116679a2a540eea
Bug 22200: Add credit when forgiving overdue

Prior to this patch the exemptfine option for_FixOverduesOnReturn would
directly set the overdue amount to 0 rather than creating an appropriate
credit of the type forgiven and offseting it against the debt.

Test Plan:
1) Find a checkout that is overdue with fines
2) Check the item in with the forgive fines option checked
3) Note that the users account details now shows the overdue as forgiven
and a forgiven credit is added which matches the overdue amount (and is
applied against it, i.e. both overdue and forgiven lines have 0
amountoutstanding).

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Circulation.pm