Bugzilla – Attachment 96402 Details for
Bug 23442
Add a 'refund' process to accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23442: Add refund permission
Bug-23442-Add-refund-permission.patch (text/plain), 3.09 KB, created by
Martin Renvoize (ashimema)
on 2019-12-18 08:52:54 UTC
(
hide
)
Description:
Bug 23442: Add refund permission
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-12-18 08:52:54 UTC
Size:
3.09 KB
patch
obsolete
>From 8ebb4b0282cc6a4952ffb5562235ad735e58562b Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 21 Nov 2019 15:04:56 +0000 >Subject: [PATCH] Bug 23442: Add refund permission > >Add a new subpermission called 'refund' to the 'updatecharges' >permission group which will allow/prevent refund actions to be >performed by staff. >--- > installer/data/mysql/atomicupdate/bug_23442.perl | 7 +++++++ > installer/data/mysql/userpermissions.sql | 1 + > koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++ > 3 files changed, 13 insertions(+) > >diff --git a/installer/data/mysql/atomicupdate/bug_23442.perl b/installer/data/mysql/atomicupdate/bug_23442.perl >index 6900fd259d..2d50b0bf28 100644 >--- a/installer/data/mysql/atomicupdate/bug_23442.perl >+++ b/installer/data/mysql/atomicupdate/bug_23442.perl >@@ -14,7 +14,14 @@ if ( CheckVersion($DBversion) ) { > INSERT IGNORE INTO account_offset_types ( type ) VALUES ('DISCOUNT'), ('REFUND'); > }); > >+ $dbh->do(qq{ >+ INSERT IGNORE permissions (module_bit, code, description) >+ VALUES >+ (10, 'refund', 'Perform account refund action') >+ }); >+ > SetVersion($DBversion); > print "Upgrade to $DBversion done (Bug 23442 - Add REFUND and DISCOUNT account_credit_types)\n"; > print "Upgrade to $DBversion done (Bug 23442 - Add REFUNDED and DISCOUNTED account_offset_types)\n"; >+ print "Upgrade to $DBversion done (Bug 23442 - Add accounts refund permission)\n"; > } >diff --git a/installer/data/mysql/userpermissions.sql b/installer/data/mysql/userpermissions.sql >index 3fdbbf8e8e..ab46391bdc 100644 >--- a/installer/data/mysql/userpermissions.sql >+++ b/installer/data/mysql/userpermissions.sql >@@ -44,6 +44,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES > ( 9, 'edit_items_restricted', 'Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)'), > ( 9, 'delete_all_items', 'Delete all items at once'), > (10, 'payout', 'Perform account payout action'), >+ (10, 'refund', 'Perform account refund action'), > (10, 'writeoff', 'Write off fines and fees'), > (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'), > (11, 'currencies_manage', 'Manage currencies and exchange rates'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index 352286e032..ff42562f64 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -309,6 +309,11 @@ > Payout credits to patrons > </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'refund' -%] >+ <span class="sub_permission refund_subpermission"> >+ Refund payments to patrons >+ </span> >+ <span class="permissioncode">([% name | html %])</span> > [%- CASE 'writeoff' -%] > <span class="sub_permission writeoff_subpermission"> > Write off fines and fees >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23442
:
92954
|
92955
|
92956
|
95674
|
95675
|
95676
|
95677
|
96400
|
96401
|
96402
|
96403
|
96414
|
96415
|
96416
|
96417
|
97008
|
97009
|
97010
|
97011
|
97012
|
97062
|
97063
|
97064
|
97065
|
97066
|
97067
|
97151
|
97152
|
97153
|
97154
|
97155
|
97156