Jonathan Druart
f10acb07e6
New permission to reopen a closed invoice. Test plan: - Remove the new permission "reopen_closed_invoices" for a given patron, use it to log in into Koha - Create an invoice, close it => You are not able to reopen the invoice - Add the permission => You are able to reopen the invoice Sponsored-by: Galway-Mayo Institute of Technology Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
10 lines
381 B
Perl
10 lines
381 B
Perl
$DBversion = 'XXX'; # will be replaced by the RM
|
|
if( CheckVersion( $DBversion ) ) {
|
|
$dbh->do(q|
|
|
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
|
|
(11, 'reopen_closed_invoices', 'Reopen closed invoices')
|
|
|);
|
|
|
|
SetVersion( $DBversion );
|
|
print "Upgrade to $DBversion done (Bug 24157: Add new permission reopen_closed_invoices)\n";
|
|
}
|