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 696-700 Link Here
696
            Access the point of sale page and take payments
696
            Access the point of sale page and take payments
697
        </span>
697
        </span>
698
        <span class="permissioncode">([% name | html %])</span>
698
        <span class="permissioncode">([% name | html %])</span>
699
    [%- CASE 'cashup' -%]
700
        <span class="sub_permission cashup_subpermission">
701
            Perform cash register cashup action
702
        </span>
703
        <span class="permissioncode">([% name | html %])</span>
699
  [%- END -%]
704
  [%- END -%]
700
[%- END -%]
705
[%- 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