Bug 24081: Add discount action to boraccount
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 3 Mar 2020 19:22:49 +0000 (19:22 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 4 Mar 2020 14:46:22 +0000 (14:46 +0000)
commit87ff9883937527660541fdaabb3a382e89be3386
tree61cbf205e7d972bfcff7b447a7f9b1813992d12d
parenta2fa0acb7daee624154c98be05ec85b613d64f42
Bug 24081: Add discount action to boraccount

This patch adds the ability to apply discounts to existing patron
charges from the boraccount page.

Test plan
1/ Carry out some accounting actions that end up with debts on the
patron record. (Add a manual invoice for example)
2/ Note a new 'Apply discount' action button on the unpaid debt
3/ Paid debts do not display the action button
4/ Click the button
5/ Enter an amount into the resulting modal and click confirm
6/ Confirm that the outstanding debt has been reduced by the amount you
specified.
7/ Confirm that a new 'Discount' line appears on the patrons account
8/ Confirm that in the 'details' view of the debt that the discount line
was used against the debt to create the reduction.
9/ Signoff

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt
members/boraccount.pl