Bug 26350: Librarians can request discharge on behalf of patron bug_26350 github/bug_26350
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 2 Sep 2020 08:59:22 +0000 (10:59 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 2 Sep 2020 12:37:28 +0000 (14:37 +0200)
commitc5c43536f9d5ee8db7b31c56d03ff6ff883a90c1
tree5c9d41d30224a4d368e08604eef78f6a25bcb8e6
parent4009bb04ad857ef042bba9a4d690dd21d84ac3dd
Bug 26350: Librarians can request discharge on behalf of patron

While deploying discharges in our library we figured out that librarians
need ability to request discharge document on behalf of patrons from
intranet page.

It was logical to add another option on Discharge patron tab.

It nicely addresses Bug 16466 since it shows status of pending
discharge instead of button to issue new discharge.

To test:
1. apply patch
2. make sure that useDischarge is enabled in administration
3. verify that "Request new discharge" button is availabe, click on it
4. after page reload, message "Patron has pending discharge request."
   will appear
5. click on "Generate discharge" to approve discharge and generate
   pdf (this is unchanged compared to exsting workflow)
koha-tmpl/intranet-tmpl/prog/en/modules/members/discharge.tt
members/discharge.pl