Bugzilla – Attachment 97084 Details for
Bug 23355
Add a 'cashup' process to accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23355: Add cashup permissions
Bug-23355-Add-cashup-permissions.patch (text/plain), 1.92 KB, created by
Martin Renvoize (ashimema)
on 2020-01-09 13:54:42 UTC
(
hide
)
Description:
Bug 23355: Add cashup permissions
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-01-09 13:54:42 UTC
Size:
1.92 KB
patch
obsolete
>From 8fcba0e21f5d81feaa534f1570b70abfec5c1ba5 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 13 Sep 2019 14:48:49 +0100 >Subject: [PATCH] Bug 23355: Add cashup permissions > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../mysql/atomicupdate/bug_23355_permissions.perl | 12 ++++++++++++ > .../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++ > 2 files changed, 17 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_23355_permissions.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_23355_permissions.perl b/installer/data/mysql/atomicupdate/bug_23355_permissions.perl >new file mode 100644 >index 0000000000..b43f0dfdd5 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_23355_permissions.perl >@@ -0,0 +1,12 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if ( CheckVersion($DBversion) ) { >+ >+ $dbh->do(qq{ >+ INSERT IGNORE permissions (module_bit, code, description) >+ VALUES >+ (25, 'cashup_cash_registers', 'Perform cash register cashup action') >+ }); >+ >+ SetVersion($DBversion); >+ print "Upgrade to $DBversion done (Bug 23355 - Add cash register cashup permissions)\n"; >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >index b66d9bd400..ff0d829739 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -696,5 +696,10 @@ > Access the point of sale page and take payments > </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'cashup_cash_registers' -%] >+ <span class="sub_permission cashup_cash_registers_subpermission"> >+ Perform cash register cashup action >+ </span> >+ <span class="permissioncode">([% name | html %])</span> > [%- END -%] > [%- END -%] >-- >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 23355
:
92941
|
92942
|
92943
|
92944
|
92945
|
92946
|
92947
|
92948
|
92949
|
92950
|
92951
|
92952
|
92953
|
97031
|
97032
|
97033
|
97034
|
97035
|
97036
|
97037
|
97038
|
97039
|
97040
|
97041
|
97043
|
97044
|
97045
|
97046
|
97047
|
97048
|
97049
|
97050
|
97051
|
97052
|
97053
|
97054
|
97077
|
97078
|
97079
|
97080
|
97081
|
97082
|
97083
|
97084
|
97085
|
97086
|
97087
|
97088
|
97089
|
97706
|
97707
|
97708
|
97709
|
97710
|
97711
|
97712
|
97713
|
97714
|
97715
|
97716
|
97784
|
97785
|
97786
|
97787
|
97788
|
97789
|
97790
|
97791
|
97792
|
97793
|
97794
|
97816
|
97817
|
97818
|
97819
|
97820
|
97821
|
97822
|
97823
|
98026
|
98027
|
98028
|
98835
|
98836
|
98837
|
98838
|
98839
|
98840
|
98841
|
98842
|
100009
|
100010
|
100011
|
100012
|
100013
|
100014
|
100015
|
100016
|
100017
|
100018
|
100019
|
100020
|
100021
|
100030
|
100090
|
101685