Koha-clms/Koha/Account
Nick Clemens 50c99a360c Bug 28482: [19.11.x] Refresh line from DB to get stored value
Before checking if the amount is 0 we get the stored value from the DB. This
ensures any amounts beyond the 6 digit precision we store will be removed.

To test:
1 - Add a processing fee of 15 to an itemtype
2 - Add an item of that type, set the replacement fee to 12.63
3 - Set MarkLostItemsAsReturned to 'On payment' only
4 - Set  WhenLostChargeReplacementFee to 'Charge'
5 - Checkout the item to a patron
6 - Mark the item lost
7 - Reload patron and confirm they are charged 27.63
8 - Go to accounting, pay amount, pay 27.63
9 - Item is still lost and not returned
10 - Apply patch
11 - Checkin the item
12 - Checkout to another patron
13 - Mark lost
14 - Patron charged 27.63
15 - Pay amount, 27.63
16 - Item returned!

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

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2021-07-08 01:55:03 +00:00
..
CreditType.pm Bug 23805: Update mancredit to use the new credit types 2019-10-24 17:35:21 +01:00
CreditTypes.pm Bug 23805: Update mancredit to use the new credit types 2019-10-24 17:35:21 +01:00
DebitType.pm Bug 23049: (follow-up) Correction to includes 2019-10-24 17:24:57 +01:00
DebitTypes.pm Bug 23049: Account types configuration - Admin page 2019-10-24 17:23:57 +01:00
Line.pm Bug 28482: [19.11.x] Refresh line from DB to get stored value 2021-07-08 01:55:03 +00:00
Lines.pm Bug 21673: (QA follow-up) Fix typo and remove unused library 2018-11-06 16:44:33 +00:00
Offset.pm Bug 2696: (QA follow-up) Fix POD, results sorting, permissions 2018-04-24 14:01:47 -03:00
Offsets.pm Bug 13098: Fix POD for Koha::Account::Offsets::total 2018-10-31 13:13:38 +00:00