@@ -, +, @@
options
---
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
--- a/installer/data/mysql/atomicupdate/bug_30335.pl
+++ a/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')
+ });
+ },
+};
--- a/installer/data/mysql/mandatory/userpermissions.sql
+++ a/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'),
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc
@@ -368,6 +368,16 @@
Write off fines and fees
([% name | html %])
+ [%- CASE 'manual_invoice' -%]
+
+ Add manual invoices to a patron account
+
+ ([% name | html %])
+ [%- CASE 'manual_credit' -%]
+
+ Add manual credits to a patron account
+
+ ([% name | html %])
[%- CASE 'suggestions_manage' -%]
Manage purchase suggestions
--