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

(-)a/installer/data/mysql/atomicupdate/bug_23354_permissions.perl (+13 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, 'takepayment', 'Access the point of sale page and take payments')
8
    });
9
10
11
    SetVersion($DBversion);
12
    print "Upgrade to $DBversion done (Bug 23354 - Add point of sale permissions)\n";
13
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+5 lines)
Lines 676-680 Link Here
676
            Add, edit and archive cash registers
676
            Add, edit and archive cash registers
677
        </span>
677
        </span>
678
        <span class="permissioncode">([% name | html %])</span>
678
        <span class="permissioncode">([% name | html %])</span>
679
    [%- CASE 'takepayment' -%]
680
        <span class="sub_permission takepayment_subpermission">
681
            Access the point of sale page and take payments
682
        </span>
683
        <span class="permissioncode">([% name | html %])</span>
679
  [%- END -%]
684
  [%- END -%]
680
[%- END -%]
685
[%- END -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-1 / +2 lines)
Lines 80-88 Link Here
80
                    <div class="col-xs-6">
80
                    <div class="col-xs-6">
81
                        <ul class="biglinks-list">
81
                        <ul class="biglinks-list">
82
82
83
                            [% IF ( Koha.Preference('UseCashRegisters') && CAN_user_cash_management_takepayment ) %]
83
                            <li>
84
                            <li>
84
                                <a class="icon_general icon_pos" href="/cgi-bin/koha/pos/pay.pl">Point of sale</a>
85
                                <a class="icon_general icon_pos" href="/cgi-bin/koha/pos/pay.pl">Point of sale</a>
85
                            </li>
86
                            </li>
87
                            [% END %]
86
88
87
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
89
                            [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %]
88
                            <li>
90
                            <li>
89
- 

Return to bug 23354