]> git.koha-community.org Git - koha.git/commit
Bug 15656: Move guarantor/guarantees code - GetGuarantees
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 25 Jan 2016 13:25:42 +0000 (13:25 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Sat, 12 Mar 2016 23:40:10 +0000 (23:40 +0000)
commitbff0ca0b0b91fd066ebc87a59d88f92f6143f7ee
tree3627e9b7a31de1934fa339d938d215c83a0d6879
parent186f630407573fd5a48522457685cebd13abc6db
Bug 15656: Move guarantor/guarantees code - GetGuarantees

2 subroutines of C4::Members deal with guarantor/guarantees:
GetGuarantees and GetMemberRelatives.
Since we already have a Koha::Patron->guarantor method, it makes sense
to move these 2 subroutines to this module.

This first patch deals with GetGuarantees.

Test plan for the entire patch set:
1/ Create 5 patrons A (adult), B (child), C (child), D (child), E
(child), F (adult)
2/ Add relation between them: A is father of B, C and D.
E does not have a guarantor
F does not have guarantees
3/ Check some items out for all of these patrons
4/ On the "Check out" and "Details" tabs, you should not see any
differences with these patch applied : The "Relatives' checkouts" tabs
should list all of the guarantor/guarantee/siblings checkouts

Note:
$template->param('C' => 1);
I have not found any reference of this 'C' in the template.
It seems it's an old c/p from members/memberentrygen.tt

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
C4/Members.pm
Koha/Patron.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
members/moremember.pl
t/db_dependent/Koha/Patrons.t [new file with mode: 0644]