Bugzilla – Attachment 137846 Details for
Bug 30335
Add ability to hide/disable manual invoices and manual credits in patron accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30335: (follow-up) Add permissions for manual accounts options
Bug-30335-follow-up-Add-permissions-for-manual-acc.patch (text/plain), 3.43 KB, created by
Katrin Fischer
on 2022-07-18 20:41:15 UTC
(
hide
)
Description:
Bug 30335: (follow-up) Add permissions for manual accounts options
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-07-18 20:41:15 UTC
Size:
3.43 KB
patch
obsolete
>From ccc5c30c8ae4a5973a790a79b904d131d287cad2 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 15 Jul 2022 16:54:03 +0100 >Subject: [PATCH] Bug 30335: (follow-up) Add permissions for manual accounts > options > >This patch adds two new sub-permissions, `manual_credit` and >`manual_invoice` to allow/prevent staff the ability to add manual >invoices and credits to a patrons account. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > installer/data/mysql/atomicupdate/bug_30335.pl | 15 +++++++++++++++ > .../data/mysql/mandatory/userpermissions.sql | 2 ++ > .../prog/en/includes/permissions.inc | 10 ++++++++++ > 3 files changed, 27 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_30335.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30335.pl b/installer/data/mysql/atomicupdate/bug_30335.pl >new file mode 100644 >index 0000000000..3afb3b2148 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30335.pl >@@ -0,0 +1,15 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "30335", >+ description => "Add manual_invoice and manual_credit permissions", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+ INSERT IGNORE permissions (module_bit, code, description) VALUES >+ (10, 'manual_credit', 'Add manual credits to a patron account'), >+ (10, 'manual_invoice', 'Add manual invoices to a patron account') >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/userpermissions.sql b/installer/data/mysql/mandatory/userpermissions.sql >index 3a3f7f9b4e..4ff9b86ab6 100644 >--- a/installer/data/mysql/mandatory/userpermissions.sql >+++ b/installer/data/mysql/mandatory/userpermissions.sql >@@ -55,6 +55,8 @@ 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, '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'), > (11, 'currencies_manage', 'Manage currencies and exchange rates'), > (11, 'vendors_manage', 'Manage vendors'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index 3e70c155bc..b27c36ddaf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -368,6 +368,16 @@ > Write off fines and fees > </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'manual_invoice' -%] >+ <span class="sub_permission manual_invoice_subpermission"> >+ Add manual invoices to a patron account >+ </span> >+ <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'manual_credit' -%] >+ <span class="sub_permission manual_credit_subpermission"> >+ Add manual credits to a patron account >+ </span> >+ <span class="permissioncode">([% name | html %])</span> > [%- CASE 'suggestions_manage' -%] > <span class="sub_permission suggestions_manage_subpermission"> > Manage purchase suggestions >-- >2.30.2
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 30335
:
132031
|
136796
|
137777
|
137778
|
137779
|
137784
|
137845
| 137846 |
137847
|
137848