C4::Bookseller - Koha functions for dealing with booksellers.
use C4::Bookseller;
The functions in this module deal with booksellers. They allow to add a new bookseller, to modify it or to get some informations around a bookseller.
@results = &GetBookSeller($searchstring);
Looks up a book seller.
$searchstring
may be either a book seller ID,
or a string to look for in the book seller's name.
@results
is an array of references-to-hash,
whose keys are the fields of of the aqbooksellers table in the Koha database.
%results = &GetBooksellersWithLateOrders;
Searches for suppliers with late orders.
$id = &AddBookseller($bookseller);
Creates a new bookseller.
$bookseller
is a reference-to-hash whose keys are the fields of the aqbooksellers table in the Koha database.
All fields must be present.
Returns the ID of the newly-created bookseller.
&ModBookseller($bookseller);
Updates the information for a given bookseller.
$bookseller
is a reference-to-hash whose keys are the fields of the aqbooksellers table in the Koha database.
It must contain entries for all of the fields.
The entry to modify is determined by $bookseller->{id}
.
The easiest way to get all of the necessary fields is to look up a book seller with &GetBookseller
,
modify what's necessary,
then call &ModBookseller
with the result.
&DelBookseller($booksellerid);
delete the supplier identified by $booksellerid This sub can be called only if the supplier has no order.
Koha Developement team <info@koha.org>