Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Tomas Cohen Arazi a3036b4760 Bug 18805: Add ability to use up account credits
This patch introduces a new button in the 'Pay fines' tab  on the
patron's account page. This button, labeled 'Normalize account' is only
displayed when outstanding credits are available, that could be used to
pay up existing debts.

When clicking the button, the Koha::Account::normalize_balance method
(bug 21896) is used for the purpose.

To test:
- Apply this patch (on top of 21896)
- On a patron's 'Fines' tab, create a 'manual invoice' (maybe more than
  one)
- Go to the 'Pay fines' tab
=> SUCCESS: No 'Apply credits' button is displayed.
- On the 'create manual credit' tab, create a couple credits.
- Go to the 'Pay fines'
=> SUCCESS: 'Apply credits' button is displayed
- Click on 'Apply credits'
=> SUCCESS: Outstanding credits have been used to pay up debts.
- Play with different options (credit excedes debts and vice-versa, they
        match, etc)
=> SUCCESS: They all work as expected
- Sign off :-D

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-29 18:47:15 +00:00
..
tables Bug 18480: Get rid of unwanted / distracting link in patron search for fund owner 2018-10-15 14:19:08 +00:00
accountline-details.tt Bug 21715: Ease translation of account and account offset type descriptions 2018-11-08 02:18:47 +00:00
apikeys.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
boraccount.tt Bug 21715: Ease translation of account and account offset type descriptions 2018-11-08 02:18:47 +00:00
deletemem.tt Bug 21454: Remove html filter for Price filtered variables 2018-10-01 13:56:34 +00:00
discharge.tt Bug 21669: Do not html filter TT assignement statements 2018-10-26 16:38:36 +00:00
discharges.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
files.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
holdshistory.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
housebound.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
mancredit.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
maninvoice.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
member-flags.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member-password.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
member.tt Bug 21353: (follow-up) same check for select/clear all links 2018-09-26 15:50:22 +00:00
memberentrygen.tt Bug 10442: Remove references to non-standard "error" class 2018-10-31 13:34:02 +00:00
members-update.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
merge-patrons.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
moremember-brief.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
moremember-print.tt Bug 21715: Ease translation of account and account offset type descriptions 2018-11-08 02:18:47 +00:00
moremember-receipt.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
moremember.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
notices.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
pay.tt Bug 18805: Add ability to use up account credits 2018-11-29 18:47:15 +00:00
paycollect.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
printfeercpt.tt Bug 21715: Ease translation of account and account offset type descriptions 2018-11-08 02:18:47 +00:00
printinvoice.tt Bug 21715: Ease translation of account and account offset type descriptions 2018-11-08 02:18:47 +00:00
purchase-suggestions.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
readingrec.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
routing-lists.tt Bug 21526: uri escape TT variables when used in 'a href' 2018-10-26 17:09:57 +00:00
statistics.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
update-child.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00