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

(-)a/installer/data/mysql/atomicupdate/bug_23442.perl (+7 lines)
Lines 10-15 if ( CheckVersion($DBversion) ) { Link Here
10
        }
10
        }
11
    );
11
    );
12
12
13
    $dbh->do(qq{
14
        INSERT IGNORE permissions (module_bit, code, description)
15
        VALUES
16
        (10, 'refund', 'Perform account refund action')
17
    });
18
13
    SetVersion($DBversion);
19
    SetVersion($DBversion);
14
    print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_credit_type)\n";
20
    print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_credit_type)\n";
21
    print "Upgrade to $DBversion done (Bug 23442 - Add accounts refund permission)\n";
15
}
22
}
(-)a/installer/data/mysql/userpermissions.sql (+1 lines)
Lines 44-49 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
44
   ( 9, 'edit_items_restricted', 'Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)'),
44
   ( 9, 'edit_items_restricted', 'Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)'),
45
   ( 9, 'delete_all_items', 'Delete all items at once'),
45
   ( 9, 'delete_all_items', 'Delete all items at once'),
46
   (10, 'payout', 'Perform account payout action'),
46
   (10, 'payout', 'Perform account payout action'),
47
   (10, 'refund', 'Perform account refund action'),
47
   (10, 'writeoff', 'Write off fines and fees'),
48
   (10, 'writeoff', 'Write off fines and fees'),
48
   (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'),
49
   (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'),
49
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
50
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +5 lines)
Lines 304-309 Link Here
304
            Payout credits to patrons
304
            Payout credits to patrons
305
        </span>
305
        </span>
306
        <span class="permissioncode">([% name | html %])</span>
306
        <span class="permissioncode">([% name | html %])</span>
307
    [%- CASE 'refund' -%]
308
        <span class="sub_permission refund_subpermission">
309
            Refund payments to patrons
310
        </span>
311
        <span class="permissioncode">([% name | html %])</span>
307
    [%- CASE 'writeoff' -%]
312
    [%- CASE 'writeoff' -%]
308
        <span class="sub_permission writeoff_subpermission">
313
        <span class="sub_permission writeoff_subpermission">
309
            Write off fines and fees
314
            Write off fines and fees
310
- 

Return to bug 23442