Revert "Bug 17473: Add void payment permission"
This reverts commit a126d7e646.
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
f3c2d3b2f7
commit
81059bfee9
|
|
@ -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'
|
||||
});
|
||||
},
|
||||
};
|
||||
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -427,11 +427,6 @@
|
|||
Write off fines and fees
|
||||
</span>
|
||||
<span class="permissioncode">([% name | html %])</span>
|
||||
[%- CASE 'void_payment' -%]
|
||||
<span class="sub_permission void_payment_subpermission">
|
||||
Voiding Payments
|
||||
</span>
|
||||
<span class="permissioncode">([% name | html %])</span>
|
||||
[%- CASE 'manual_invoice' -%]
|
||||
<span class="sub_permission manual_invoice_subpermission">
|
||||
Add manual invoices to a patron account
|
||||
|
|
|
|||
|
|
@ -180,12 +180,10 @@
|
|||
<input type="hidden" name="op" value="cud-void" />
|
||||
<input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]">
|
||||
<input type="hidden" name="accountlines_id" value="[% account.accountlines_id | html %]">
|
||||
[% IF CAN_user_updatecharges_void_payment %]
|
||||
<button type="submit" class="btn btn-default btn-xs void-action">
|
||||
<i class="fa fa-ban"></i>
|
||||
Void payment
|
||||
</button>
|
||||
[% END %]
|
||||
<button type="submit" class="btn btn-default btn-xs void-action">
|
||||
<i class="fa fa-ban"></i>
|
||||
Void payment
|
||||
</button>
|
||||
</form>
|
||||
[% END %]
|
||||
[% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue