Bug 24279: Disable lost status select if item has a return claim
[koha.git] / Koha / ProblemReport.pm
blob061c44243368a43e2584156b368a6f7c9fdae6aa
1 package Koha::ProblemReport;
3 # This file is part of Koha.
5 # Copyright 2020 Aleisha Amohia <aleisha@catalyst.net.nz>
7 # Koha is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # Koha is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with Koha; if not, see <http://www.gnu.org/licenses>.
20 use Modern::Perl;
22 use Koha::Database;
24 use base qw(Koha::Object);
26 =head1 NAME
28 Koha::ProblemReport - Koha Problem Report Object class
30 =head1 API
32 =head2 Class Methods
34 =cut
36 =head3 patron
38 my $patron = $report->patron
40 Return the patron for who the report has been done
42 =cut
44 sub patron {
45 my ( $self ) = @_;
46 my $patron_rs = $self->_result->borrowernumber;
47 return Koha::Patron->_new_from_dbic( $patron_rs );
50 =head3 type
52 =cut
54 sub _type {
55 return 'ProblemReport';