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 = GetBooksellersWithLateOrders( $delay, $estimateddeliverydatefrom, $estimateddeliverydateto );
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 Koha::Acquisition::Bookseller
,
modify what's necessary,
then call &ModBookseller
with the result.
DelBookseller($booksellerid);
delete the supplier record identified by $booksellerid This sub assumes it is called only if the supplier has no order.
Koha Development Team <http://koha-community.org/>