View | Details | Raw Unified | Return to bug 23355
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_23355_permissions.perl (+12 lines)
Line 0 Link Here
1
$DBversion = 'XXX';    # will be replaced by the RM
2
if ( CheckVersion($DBversion) ) {
3
4
    $dbh->do(qq{
5
        INSERT IGNORE permissions (module_bit, code, description)
6
        VALUES
7
        (25, 'cashup', 'Perform cash register cashup action')
8
    });
9
10
    SetVersion($DBversion);
11
    print "Upgrade to $DBversion done (Bug 23355 - Add cash register cashup permissions)\n";
12
}
(-)a/installer/data/mysql/userpermissions.sql (+1 lines)
Lines 121-125 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
121
   (23, 'self_checkout_module', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'),
121
   (23, 'self_checkout_module', 'Perform self checkout at the OPAC. It should be used for the patron matching the AutoSelfCheckID'),
122
   (24, 'manage_rotas', 'Create, edit and delete rotas'),
122
   (24, 'manage_rotas', 'Create, edit and delete rotas'),
123
   (24, 'manage_rota_items', 'Add and remove items from rotas'),
123
   (24, 'manage_rota_items', 'Add and remove items from rotas'),
124
   (25, 'cashup', 'Perform cash register cashup action'),
124
   (25, 'takepayment', 'Access the point of sale page and take payments')
125
   (25, 'takepayment', 'Access the point of sale page and take payments')
125
;
126
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+5 lines)
Lines 699-703 Link Here
699
            Access the point of sale page and take payments
699
            Access the point of sale page and take payments
700
        </span>
700
        </span>
701
        <span class="permissioncode">([% name | html %])</span>
701
        <span class="permissioncode">([% name | html %])</span>
702
    [%- CASE 'cashup' -%]
703
        <span class="sub_permission cashup_subpermission">
704
            Perform cash register cashup action
705
        </span>
706
        <span class="permissioncode">([% name | html %])</span>
702
  [%- END -%]
707
  [%- END -%]
703
[%- END -%]
708
[%- END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/pos-menu.inc (-2 / +1 lines)
Lines 1-6 Link Here
1
<div id="navmenu">
1
<div id="navmenu">
2
    <div id="navmenulist">
2
    <div id="navmenulist">
3
        [% IF ( CAN_user_cash_management_cashup_cash_registers ) %]
3
        [% IF ( CAN_user_cash_management_cashup ) %]
4
        <h5>Point of sale</h5>
4
        <h5>Point of sale</h5>
5
        <ul>
5
        <ul>
6
            <li><a href="/cgi-bin/koha/pos/register.pl">Register details</a></li>
6
            <li><a href="/cgi-bin/koha/pos/register.pl">Register details</a></li>
7
- 

Return to bug 23355