diff --git a/installer/data/mysql/atomicupdate/bug_17473_add_permission.pl b/installer/data/mysql/atomicupdate/bug_17473_add_permission.pl deleted file mode 100755 index 2b2993b3d0..0000000000 --- a/installer/data/mysql/atomicupdate/bug_17473_add_permission.pl +++ /dev/null @@ -1,21 +0,0 @@ -use Modern::Perl - -return { - bug_number => "17473", - description => "Add void_payment permission", - up => sub { - my ($args) = @_; - my ( $dbh, $out ) = @$args{qw(dbh out)}; - $dbh->do(q{ - INSERT IGNORE permissions (module_bit, code, description) VALUES - (10, 'void_payment', 'Voiding Payments') - }); - - say $out "Added new permission 'void_payment'"; - - $dbh->do(q{ - INSERT IGNORE INTO user_permissions (borrowernumber, module_bit, code) - SELECT borrowernumber, 10, 'void_payment' FROM user_permissions WHERE code = 'remaining_permissions' - }); - }, -}; diff --git a/installer/data/mysql/mandatory/userpermissions.sql b/installer/data/mysql/mandatory/userpermissions.sql index 4137e6f091..1d8b7d034f 100644 --- a/installer/data/mysql/mandatory/userpermissions.sql +++ b/installer/data/mysql/mandatory/userpermissions.sql @@ -68,7 +68,6 @@ INSERT INTO permissions (module_bit, code, description) VALUES (10, 'refund', 'Perform account refund action'), (10, 'discount', 'Perform account discount action'), (10, 'writeoff', 'Write off fines and fees'), - (10, 'void_payment', 'Voiding Payments'), (10, 'manual_credit', 'Add manual credits to a patron account'), (10, 'manual_invoice', 'Add manual invoices to a patron account'), (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc index 69ee0e18ac..9d8cb5b910 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc @@ -427,11 +427,6 @@ Write off fines and fees ([% name | html %]) - [%- CASE 'void_payment' -%] - - Voiding Payments - - ([% name | html %]) [%- CASE 'manual_invoice' -%] Add manual invoices to a patron account diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 88af95e15b..13cc95051b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -180,12 +180,10 @@ - [% IF CAN_user_updatecharges_void_payment %] - - [% END %] + [% END %] [% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %]