Bugzilla – Attachment 111765 Details for
Bug 24786
Allow setting a cash register for a login session and configuring library-default cash registers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24786: (QA follow-up) POD Fixes
Bug-24786-QA-follow-up-POD-Fixes.patch (text/plain), 1.81 KB, created by
Martin Renvoize (ashimema)
on 2020-10-15 16:05:27 UTC
(
hide
)
Description:
Bug 24786: (QA follow-up) POD Fixes
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-10-15 16:05:27 UTC
Size:
1.81 KB
patch
obsolete
>From 2abaccf8cbc1662275c72c27b6bdc779f6d54634 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 14 Oct 2020 13:01:38 +0100 >Subject: [PATCH] Bug 24786: (QA follow-up) POD Fixes > >--- > Koha/Template/Plugin/Registers.pm | 32 ++++++++++++++++++++++++++++++- > 1 file changed, 31 insertions(+), 1 deletion(-) > >diff --git a/Koha/Template/Plugin/Registers.pm b/Koha/Template/Plugin/Registers.pm >index d68c834e0a..313a2b11eb 100644 >--- a/Koha/Template/Plugin/Registers.pm >+++ b/Koha/Template/Plugin/Registers.pm >@@ -17,6 +17,22 @@ package Koha::Template::Plugin::Registers; > # You should have received a copy of the GNU General Public License > # along with Koha; if not, see <http://www.gnu.org/licenses>. > >+=head1 NAME >+ >+Koha::Template::Plugin::Registers >+ >+=head1 DESCRIPTION >+ >+The Registers plugin is a helper that returns register related session information for templates >+ >+=head1 SYNOPSIS >+ >+ [% USE Registers %] >+ [% SET registers = Registers.all() %] >+ [% SET registers = Registers.all( { filters => { current_branch => 1 } } ); >+ >+=cut >+ > use Modern::Perl; > > use Template::Plugin; >@@ -26,6 +42,14 @@ use C4::Koha; > use C4::Context; > use Koha::Cash::Registers; > >+=head1 FUNCTIONS >+ >+=head2 session_register_id >+ >+Return the register_id for the register attached to the current session. >+ >+=cut >+ > sub session_register_id { > my ($self) = @_; > >@@ -34,6 +58,12 @@ sub session_register_id { > ''; > } > >+=head2 session_register_name >+ >+Return the register_name for the register attached to the current session. >+ >+=cut >+ > sub session_register_name { > my ($self) = @_; > >@@ -42,7 +72,7 @@ sub session_register_name { > : ''; > } > >-=head2 >+=head2 all > > [% SET registers = Registers.all() %] > [% SET registers = Registers.all( { filters => { current_branch => 1 } } ); >-- >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 24786
:
107145
|
107146
|
107147
|
107148
|
107149
|
107739
|
107740
|
107741
|
107742
|
107743
|
107754
|
107755
|
107756
|
107757
|
107758
|
107759
|
107957
|
107958
|
107959
|
107960
|
107961
|
107962
|
108060
|
108061
|
108062
|
108063
|
108064
|
108065
|
108066
|
108510
|
108511
|
108512
|
108513
|
108514
|
108515
|
108516
|
110162
|
110163
|
110164
|
110165
|
110166
|
110167
|
110168
|
110187
|
110188
|
110189
|
110190
|
110191
|
110192
|
110193
|
111066
|
111067
|
111068
|
111069
|
111070
|
111071
|
111072
|
111074
|
111126
|
111127
|
111128
|
111129
|
111130
|
111131
|
111132
|
111133
|
111220
|
111221
|
111222
|
111223
|
111224
|
111225
|
111226
|
111227
|
111228
|
111229
|
111230
|
111231
|
111232
|
111233
|
111234
|
111235
|
111611
|
111612
|
111613
|
111614
|
111615
|
111616
|
111617
|
111618
|
111619
|
111620
|
111623
|
111725
|
111757
|
111758
|
111759
|
111760
|
111761
|
111762
|
111763
|
111764
|
111765
|
111766
|
111767
|
111768
|
111769
|
111770
|
111776
|
111777
|
111778
|
111779
|
111780
|
111781
|
111782
|
111783
|
111784
|
111785
|
111786
|
111787
|
111788
|
112985
|
112988
|
112989
|
113226
|
113227
|
113241
|
113251
|
113253
|
113256
|
113257
|
113260