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

(-)a/installer/data/mysql/atomicupdate/bug_23442.perl (+7 lines)
Lines 14-20 if ( CheckVersion($DBversion) ) { Link Here
14
        INSERT IGNORE INTO account_offset_types ( type ) VALUES ('DISCOUNT'), ('REFUND');
14
        INSERT IGNORE INTO account_offset_types ( type ) VALUES ('DISCOUNT'), ('REFUND');
15
    });
15
    });
16
16
17
    $dbh->do(qq{
18
        INSERT IGNORE permissions (module_bit, code, description)
19
        VALUES
20
        (10, 'refund', 'Perform account refund action')
21
    });
22
17
    SetVersion($DBversion);
23
    SetVersion($DBversion);
18
    print "Upgrade to $DBversion done (Bug 23442 - Add REFUND and DISCOUNT account_credit_types)\n";
24
    print "Upgrade to $DBversion done (Bug 23442 - Add REFUND and DISCOUNT account_credit_types)\n";
19
    print "Upgrade to $DBversion done (Bug 23442 - Add REFUNDED and DISCOUNTED account_offset_types)\n";
25
    print "Upgrade to $DBversion done (Bug 23442 - Add REFUNDED and DISCOUNTED account_offset_types)\n";
26
    print "Upgrade to $DBversion done (Bug 23442 - Add accounts refund permission)\n";
20
}
27
}
(-)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 309-314 Link Here
309
            Payout credits to patrons
309
            Payout credits to patrons
310
        </span>
310
        </span>
311
        <span class="permissioncode">([% name | html %])</span>
311
        <span class="permissioncode">([% name | html %])</span>
312
    [%- CASE 'refund' -%]
313
        <span class="sub_permission refund_subpermission">
314
            Refund payments to patrons
315
        </span>
316
        <span class="permissioncode">([% name | html %])</span>
312
    [%- CASE 'writeoff' -%]
317
    [%- CASE 'writeoff' -%]
313
        <span class="sub_permission writeoff_subpermission">
318
        <span class="sub_permission writeoff_subpermission">
314
            Write off fines and fees
319
            Write off fines and fees
315
- 

Return to bug 23442