Bugzilla – Attachment 92834 Details for
Bug 23354
Add a 'Point of sale' screen to allow anonymous payments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23354: Add permissions
Bug-23354-Add-permissions.patch (text/plain), 2.76 KB, created by
Martin Renvoize (ashimema)
on 2019-09-16 11:59:36 UTC
(
hide
)
Description:
Bug 23354: Add permissions
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-09-16 11:59:36 UTC
Size:
2.76 KB
patch
obsolete
>From ca57d175c2c44272ad2229e36095c8815a86ad6e Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 11 Sep 2019 10:44:56 +0100 >Subject: [PATCH] Bug 23354: Add permissions > >--- > .../mysql/atomicupdate/bug_23354_permissions.perl | 13 +++++++++++++ > .../intranet-tmpl/prog/en/includes/permissions.inc | 5 +++++ > .../intranet-tmpl/prog/en/modules/intranet-main.tt | 2 ++ > 3 files changed, 20 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_23354_permissions.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_23354_permissions.perl b/installer/data/mysql/atomicupdate/bug_23354_permissions.perl >new file mode 100644 >index 0000000000..05b1d7d453 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_23354_permissions.perl >@@ -0,0 +1,13 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if ( CheckVersion($DBversion) ) { >+ >+ $dbh->do(qq{ >+ INSERT IGNORE permissions (module_bit, code, description) >+ VALUES >+ (25, 'takepayment', 'Access the point of sale page and take payments') >+ }); >+ >+ >+ SetVersion($DBversion); >+ print "Upgrade to $DBversion done (Bug 23354 - Add point of sale 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 e3faeddbba..c79409ad36 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc >@@ -676,5 +676,10 @@ > Add, edit and archive cash registers > </span> > <span class="permissioncode">([% name | html %])</span> >+ [%- CASE 'takepayment' -%] >+ <span class="sub_permission takepayment_subpermission"> >+ Access the point of sale page and take payments >+ </span> >+ <span class="permissioncode">([% name | html %])</span> > [%- END -%] > [%- END -%] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >index 9257968a09..c1bf9a2686 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >@@ -80,9 +80,11 @@ > <div class="col-xs-6"> > <ul class="biglinks-list"> > >+ [% IF ( Koha.Preference('UseCashRegisters') && CAN_user_cash_management_takepayment ) %] > <li> > <a class="icon_general icon_pos" href="/cgi-bin/koha/pos/pay.pl">POS</a> > </li> >+ [% END %] > > [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %] > <li> >-- >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 23354
:
92066
|
92431
|
92432
|
92433
|
92502
|
92830
|
92831
|
92832
|
92833
|
92834
|
92873
|
92874
|
92875
|
92876
|
92877
|
92878
|
92890
|
92891
|
92892
|
92893
|
92894
|
92895
|
93116
|
93117
|
93118
|
93119
|
93120
|
93121
|
93122
|
93123
|
93124
|
93465
|
93466
|
93467
|
93468
|
93469
|
93470
|
93471
|
93472
|
93473
|
93604
|
93605
|
93606
|
93607
|
93608
|
93609
|
93610
|
93611
|
93612
|
94689
|
94690
|
94691
|
94692
|
94693
|
94694
|
94695
|
94696
|
94697
|
94698
|
94699
|
95678
|
95679
|
95680
|
95681
|
95682
|
95683
|
95684
|
95685
|
95686
|
95687
|
95688
|
95689
|
95690
|
95691
|
95692
|
95693
|
97013
|
97014
|
97015
|
97016
|
97017
|
97018
|
97019
|
97020
|
97021
|
97022
|
97023
|
97024
|
97025
|
97026
|
97027
|
97028
|
97029
|
97169
|
97170
|
97171
|
97188
|
97189
|
97200
|
97201
|
97202
|
97203
|
97204
|
97205
|
97206
|
97207
|
97208
|
97209
|
97210
|
97211
|
97212
|
97213
|
97214
|
97215
|
97216
|
97217
|
97218
|
97219
|
97271
|
97272
|
97273
|
97274
|
97275
|
97276
|
97277
|
97278
|
97279
|
97280
|
97281
|
97282
|
97283
|
97284
|
97285
|
97286
|
97287
|
97288
|
97289
|
97290
|
97291
|
97292
|
97725
|
97726
|
100167