@@ -, +, @@ --- .../mysql/atomicupdate/bug_23355_permissions.perl | 12 ++++++++++++ installer/data/mysql/userpermissions.sql | 1 + .../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++ .../intranet-tmpl/prog/en/includes/pos-menu.inc | 2 +- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 installer/data/mysql/atomicupdate/bug_23355_permissions.perl --- a/installer/data/mysql/atomicupdate/bug_23355_permissions.perl +++ a/installer/data/mysql/atomicupdate/bug_23355_permissions.perl @@ -0,0 +1,12 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if ( CheckVersion($DBversion) ) { + + $dbh->do(qq{ + INSERT IGNORE permissions (module_bit, code, description) + VALUES + (25, 'cashup', 'Perform cash register cashup action') + }); + + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 23355 - Add cash register cashup permissions)\n"; +} --- a/installer/data/mysql/userpermissions.sql +++ a/installer/data/mysql/userpermissions.sql @@ -121,5 +121,6 @@ INSERT INTO permissions (module_bit, code, description) VALUES (23, 'self_checkout_module', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'), (24, 'manage_rotas', 'Create, edit and delete rotas'), (24, 'manage_rota_items', 'Add and remove items from rotas'), + (25, 'cashup', 'Perform cash register cashup action'), (25, 'takepayment', 'Access the point of sale page and take payments') ; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -699,5 +699,10 @@ Access the point of sale page and take payments ([% name | html %]) + [%- CASE 'cashup' -%] + + Perform cash register cashup action + + ([% name | html %]) [%- END -%] [%- END -%] --- a/koha-tmpl/intranet-tmpl/prog/en/includes/pos-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/pos-menu.inc @@ -1,6 +1,6 @@