C4::Bookseller::Contact - object class for contacts associated with vendors
This class provides an object-oriented interface for handling vendor contacts. It uses Class::Accessor to provide access to the following fields:
ID of the contact. This is not used initially, since contacts are actually stored in the aqbooksellers table.
Contact name.
Contact's position.
Contact's primary phone number.
Contact's alternate phone number.
Contact's fax number.
Contact's e-mail address.
Notes about contact.
Whether the contact should receive acquisitions claims.
Whether the contact should receive serials claims.
Whether the contact is the primary contact for acquisitions.
Whether the contact is the primary contact for serials.
ID of the bookseller the contact is associated with.
my @contacts = @{C4::Bookseller::Contact->get_from_bookseller($booksellerid)};
Returns a reference to an array of C4::Bookseller::Contact objects for the specified bookseller. This will always return at least one item, though that one item may be an empty contact.
my $contact = C4::Bookseller::Contact->fetch($contactid);
Retrieves the specified contact from the database. Currently commented out because there is no separate table from which contacts can be fetched.
$contact->save();
Save a contact to the database.
Jared Camins-Esakov <jcamins@cpbibliography.com>