Bug 10402 follow-up: choose contacts for claims
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 12 Sep 2013 13:29:40 +0000 (09:29 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 26 Aug 2014 14:45:59 +0000 (11:45 -0300)
commita537a60bd47224c9a6ed9431e44d90876339b28d
tree667a9d85bd9d31a9766fbcfad96a7a4a5f2b8ef4
parent3b3656aa9daf7af60d04a0114608a1420e8e0d6b
Bug 10402 follow-up: choose contacts for claims

This patch makes it possible to choose a particular contact for
acquisitions and serials claims. To test:

1) Select a contact to use for claiming late orders and a contact
   to use for claiming late issues.
2) Send a claim for a late order and a claim for a late issue.
3) Note that the claims went out to the proper people.
4) Run the unit test with:
    > prove t/db_dependent/Letters.t
5) Sign off.

Note: the claim messages are recorded in the logs in the *Acquisitions*
module, not the Letters module as you might expect

This patch also fixes several perlcritic violations and centralizes
contact-related unit testing in Bookseller.t.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Bookseller.pm
C4/Bookseller/Contact.pm
C4/Letters.pm
acqui/supplier.pl
acqui/updatesupplier.pl
installer/data/mysql/kohastructure.sql
installer/data/mysql/updatedatabase.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt
t/db_dependent/Bookseller.t
t/db_dependent/Letters.t