Bug 14039: Add the title to all places
[koha.git] / Koha / Acquisition / Basket.pm
1 package Koha::Acquisition::Basket;
2
3 # Copyright 2017 Aleisha Amohia <aleisha@catalyst.net.nz>
4 #
5 # This file is part of Koha.
6 #
7 # Koha is free software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the Free Software
9 # Foundation; either version 3 of the License, or (at your option) any later
10 # version.
11 #
12 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License along
17 # with Koha; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
20 use Modern::Perl;
21
22 use Koha::Database;
23
24 use base qw( Koha::Object );
25
26 =head1 NAME
27
28 Koha::Acquisition::Basket - Koha Basket Object class
29
30 =head1 API
31
32 =head2 Class Methods
33
34 =cut
35
36 =head3 bookseller
37
38 Returns the vendor
39
40 =cut
41
42 sub bookseller {
43     my ($self) = @_;
44     my $bookseller_rs = $self->_result->booksellerid;
45     return Koha::Acquisition::Bookseller->_new_from_dbic( $bookseller_rs );
46 }
47
48 =head3 type
49
50 =cut
51
52 sub _type {
53     return 'Aqbasket';
54 }
55
56 =head1 AUTHOR
57
58 Aleisha Amohia <aleisha@catalyst.net.nz>
59 Catalyst IT
60
61 =cut
62
63 1;