1 package Koha::Acquisition::Bookseller;
3 # This file is part of Koha.
5 # Koha is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Koha is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Koha; if not, see <http://www.gnu.org/licenses>.
20 use Koha::Acquisition::Bookseller::Contacts;
21 use Koha::Subscriptions;
23 use base qw( Koha::Object );
27 Koha::Acquisition::Bookseller Object class
35 my $vendor = Koha::Acquisition::Booksellers->find( $id );
36 my @baskets = $vendor->baskets();
38 Returns the list of baskets for the vendor
44 return $self->{_result}->aqbaskets;
49 my $vendor = Koha::Acquisition::Booksellers->find( $id );
50 my @contacts = $vendor->contacts();
52 Returns the list of contacts for the vendor
58 return Koha::Acquisition::Bookseller::Contacts->search( { booksellerid => $self->id } );
63 my $vendor = Koha::Acquisition::Booksellers->find( $id );
64 my @subscriptions = $vendor->subscriptions();
66 Returns the list of subscriptions for the vendor
73 return Koha::Subscriptions->search( { aqbooksellerid => $self->id } );
78 This method returns the mapping for representing a Koha::Acquisition::Bookseller object
85 booksellerfax => undef,
86 bookselleremail => undef,
87 booksellerurl => undef,
89 othersupplier => undef,
90 listprice => 'list_currency',
91 invoiceprice => 'invoice_currency',
93 listincgst => 'list_includes_gst',
94 invoiceincgst => 'invoice_includes_gst'
98 =head2 Internal methods
105 return 'Aqbookseller';