Bugzilla – Attachment 95795 Details for
Bug 24080
Add a 'payout' process to accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24080: Add updatecharge payout permission
Bug-24080-Add-updatecharge-payout-permission.patch (text/plain), 3.06 KB, created by
Martin Renvoize (ashimema)
on 2019-11-25 15:18:59 UTC
(
hide
)
Description:
Bug 24080: Add updatecharge payout permission
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-11-25 15:18:59 UTC
Size:
3.06 KB
patch
obsolete
>From a5e38591daf0a5dd66720ab0737a8741119a3900 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 21 Nov 2019 14:28:03 +0000 >Subject: [PATCH] Bug 24080: Add updatecharge payout permission > >Add a new subpermission called 'payout' to the 'updatecharges' >permission group which will allow/prevent payout actions to be performed >by staff. >--- > installer/data/mysql/atomicupdate/bug_24080.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_24080.perl b/installer/data/mysql/atomicupdate/bug_24080.perl >index dd8de49e93..514317ff8d 100644 >--- a/installer/data/mysql/atomicupdate/bug_24080.perl >+++ b/installer/data/mysql/atomicupdate/bug_24080.perl >@@ -19,7 +19,14 @@ if ( CheckVersion($DBversion) ) { > INSERT IGNORE INTO account_offset_types ( type ) VALUES ('PAYOUT'); > }); > >+ $dbh->do(qq{ >+ INSERT IGNORE permissions (module_bit, code, description) >+ VALUES >+ (10, 'payout', 'Perform account payout action') >+ }); >+ > SetVersion($DBversion); > print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_debit_type)\n"; > print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_offset_type)\n"; >+ print "Upgrade to $DBversion done (Bug 24080 - Add accounts payout permission)\n"; > } >diff --git a/installer/data/mysql/userpermissions.sql b/installer/data/mysql/userpermissions.sql >index 085024e78c..3fdbbf8e8e 100644 >--- a/installer/data/mysql/userpermissions.sql >+++ b/installer/data/mysql/userpermissions.sql >@@ -43,6 +43,7 @@ INSERT INTO permissions (module_bit, code, description) VALUES > ( 9, 'edit_items', 'Edit items'), > ( 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, '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 606306caed..f42f93efb5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -299,6 +299,11 @@ > Remaining permissions for managing fines and fees > </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'payout' -%] >+ <span class="sub_permission payout_subpermission"> >+ Payout credits 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 24080
:
95665
|
95666
|
95667
|
95668
|
95669
|
95670
|
95671
|
95672
|
95793
|
95794
|
95795
|
95796
|
96332
|
96333
|
96334
|
96335
|
96519
|
96520
|
96521
|
96522
|
96523
|
96597
|
96598
|
96599
|
96600
|
96601
|
96602
|
96605
|
96606
|
96607
|
96608
|
96609
|
96610
|
96748
|
96749
|
96750
|
96751
|
96752
|
96753