Bug 6759: Split account creation and renewal charges
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 24 Apr 2019 10:08:49 +0000 (11:08 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 13 Sep 2019 07:06:41 +0000 (08:06 +0100)
commit839c095b5461db3818df3ed8589c075e01a9d471
treeb111b654d73b1e1eb43931c4b36973aac5996d82
parent9a8bc7fcc5d88dc5ed5d279fae3029c4a9ecbca5
Bug 6759: Split account creation and renewal charges

Test plan:
1. Enable charging for patron enrolement
2. Add a new patron where the category is charged for
3. Note the charge of type 'Account management fee'
4. Renew the patron
5. Note the next charge of type 'Account management fee'
6. Apply patch
7. Repeat steps 1-6 and note the first charge will be of type 'Account
creation fee' and the second of type 'Account renewal fee'
8. Bonus points, enable 'FeeOnChangePatronCategory' and check that when
changing a patron from a free category to a charged one that a new
'Account renewal fee' is charged.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Account.pm
Koha/Patron.pm
koha-tmpl/intranet-tmpl/prog/en/includes/accounts.inc
koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt
koha-tmpl/opac-tmpl/bootstrap/en/includes/account-table.inc