From 9c0b212974eaf7c3260a122052d3987ae2d2383d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 17 Jul 2019 12:39:49 +0100 Subject: [PATCH] Bug 23321: Koha::Library additions --- Koha/Library.pm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Koha/Library.pm b/Koha/Library.pm index f1a5597305..6870e84cc4 100644 --- a/Koha/Library.pm +++ b/Koha/Library.pm @@ -77,6 +77,18 @@ sub library_groups { return Koha::Library::Groups->_new_from_dbic( $rs ); } +=head3 cash_registers + +Return Cash::Registers associated with this Library + +=cut + +sub cash_registers { + my ( $self ) = @_; + my $rs = $self->_result->cash_registers; + return Koha::Cash::Registers->_new_from_dbic( $rs ); +} + =head2 Internal methods =head3 _type -- 2.20.1