Koha/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
..
accountline-details.pl
apikeys.pl
boraccount.pl Bug 20629: (QA follow-up) Remove actions_col 2018-11-06 16:32:42 +00:00
default_messageprefs.pl
deletemem.pl Bug 21068: Remove NorwegianPatronDB related code 2018-08-30 13:40:29 +00:00
discharge.pl
discharges.pl
files.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
guarantor_search.pl
holdshistory.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
housebound.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
mancredit.pl Bug 21702: (follow-up) Simplify checks and use standard fallback behaviour 2018-10-31 13:15:01 +00:00
maninvoice.pl Bug 21183: Replace C4::Items::GetItemnumberFromBarcode calls 2018-08-30 13:40:35 +00:00
member-flags.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
member-password.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
member.pl
memberentry.pl Bug 21649: Pass guarantee info to template when adding child 2018-11-26 12:33:52 +00:00
members-home.pl
members-update-do.pl Bug 20287: Move ModMember to Koha::Patron 2018-07-18 15:49:50 +00:00
members-update.pl
merge-patrons.pl
mod_debarment.pl
moremember.pl Bug 21068: Remove NorwegianPatronDB related code 2018-08-30 13:40:29 +00:00
notices.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
patronimage.pl
pay.pl Bug 18805: Add ability to use up account credits 2018-11-29 18:47:15 +00:00
paycollect.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
print_overdues.pl
printfeercpt.pl Bug 20629: Remove ability to 'reverse' payments 2018-11-06 16:32:34 +00:00
printinvoice.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
printslip.pl
purchase-suggestions.pl Bug 11911: Add a separate permission for managing suggestions 2018-07-23 15:34:20 +00:00
readingrec.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
routing-lists.pl Bug 21397: Mark "Routing list" tab as active when selected 2018-09-26 16:18:16 +00:00
setstatus.pl
statistics.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00
summary-print.pl Bug 20656: Don't print lines that have no balance on print summary 2018-09-20 13:45:28 +00:00
update-child.pl Bug 20226: Centralize update child code (CATCODE_MULTI) 2018-08-14 11:58:26 +00:00