]> git.koha-community.org Git - koha.git/commit
Bug 10402: Use an object for contacts
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 7 Jun 2013 02:38:19 +0000 (22:38 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 26 Aug 2014 14:45:42 +0000 (11:45 -0300)
commit1d089b86f7701910ec015a28c9f046d0f30f49a6
tree824edcf553a06e4e6ad093b2a0f66872794c1068
parentc435ceb9160d20d0a904f38d6c4652ae0646ba20
Bug 10402: Use an object for contacts

In preparation for adding the ability to handle multiple contacts, this
patch moves booksellers' contacts into their own class,
C4::Bookseller::Contact.

To test:
1) Apply patch.
2) Run database update.
3) Edit a bookseller, making sure to add a contact.
4) View the bookseller's information, making sure the contact
   information is there.
5) Run the unit test:
    > prove t/db_dependent/Bookseller.t

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
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 [new file with mode: 0644]
acqui/supplier.pl
acqui/uncertainprice.pl
acqui/updatesupplier.pl
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt
t/db_dependent/Bookseller.t