<<

NAME

C4::Bookseller - Koha functions for dealing with booksellers.

SYNOPSIS

use C4::Bookseller;

DESCRIPTION

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.

FUNCTIONS

GetBookSeller

@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.

GetBooksellersWithLateOrders

%results = &GetBooksellersWithLateOrders;

Searches for suppliers with late orders.

AddBookseller

$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

&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

&DelBookseller($booksellerid);

delete the supplier identified by $booksellerid This sub can be called only if the supplier has no order.

AUTHOR

Koha Development Team <http://koha-community.org/>

<<