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

(-)a/installer/data/mysql/atomicupdate/bug_24080.perl (+7 lines)
Lines 19-25 if ( CheckVersion($DBversion) ) { Link Here
19
        INSERT IGNORE INTO account_offset_types ( type ) VALUES ('PAYOUT');
19
        INSERT IGNORE INTO account_offset_types ( type ) VALUES ('PAYOUT');
20
    });
20
    });
21
21
22
    $dbh->do(qq{
23
        INSERT IGNORE permissions (module_bit, code, description)
24
        VALUES
25
        (10, 'payout', 'Perform account payout action')
26
    });
27
22
    SetVersion($DBversion);
28
    SetVersion($DBversion);
23
    print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_debit_type)\n";
29
    print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_debit_type)\n";
24
    print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_offset_type)\n";
30
    print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_offset_type)\n";
31
    print "Upgrade to $DBversion done (Bug 24080 - Add accounts payout permission)\n";
25
}
32
}
(-)a/installer/data/mysql/userpermissions.sql (+1 lines)
Lines 43-48 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
43
   ( 9, 'edit_items', 'Edit items'),
43
   ( 9, 'edit_items', 'Edit items'),
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, 'writeoff', 'Write off fines and fees'),
47
   (10, 'writeoff', 'Write off fines and fees'),
47
   (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'),
48
   (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'),
48
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
49
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +5 lines)
Lines 299-304 Link Here
299
            Remaining permissions for managing fines and fees
299
            Remaining permissions for managing fines and fees
300
        </span>
300
        </span>
301
        <span class="permissioncode">([% name | html %])</span>
301
        <span class="permissioncode">([% name | html %])</span>
302
    [%- CASE 'payout' -%]
303
        <span class="sub_permission payout_subpermission">
304
            Payout credits to patrons
305
        </span>
306
        <span class="permissioncode">([% name | html %])</span>
302
    [%- CASE 'writeoff' -%]
307
    [%- CASE 'writeoff' -%]
303
        <span class="sub_permission writeoff_subpermission">
308
        <span class="sub_permission writeoff_subpermission">
304
            Write off fines and fees
309
            Write off fines and fees
305
- 

Return to bug 24080