Bug 24157: (follow-up) Conditionally show controls to reopen and close invoice
authorOwen Leonard <oleonard@myacpl.org>
Fri, 6 Mar 2020 19:13:35 +0000 (19:13 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 30 Jul 2020 15:30:23 +0000 (17:30 +0200)
commit6638e9de8c405e119a3816516a3340e84f5d8793
tree9306a80170c58d3963f4ec1a9e59dcabb2a0d962
parent6b984a0feb29aede7a569dddd6aae35b13eed5cf
Bug 24157: (follow-up) Conditionally show controls to reopen and close invoice

This follow-up makes minor changes to the template so that the checkbox
for reopening or closing an invoice are not displayed when the user
doens't have the correct permissions.

To test, apply the patch and try the process of viewing or editing an
invoice as a user with these various permissions:

 - edit_invoices ON
 - edit_invoices OFF
 - reopen_closed_invoices ON
 - reopen_closed_invoices OFF

Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt