]> git.koha-community.org Git - koha.git/commit
Bug 14763: Calculate and display patron age
authorAleisha <aleishaamohia@hotmail.com>
Wed, 13 Jan 2016 23:36:21 +0000 (23:36 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 27 Jan 2016 06:10:13 +0000 (06:10 +0000)
commitb124540ee9819c86fd82a8fd63214c5b56ea9e32
tree0d7cf78dd51e02b74d6fbb9e9dc06c539d8907e2
parent9c6aaab329153b4d15fae9d22ab3a223c9fabfe7
 Bug 14763: Calculate and display patron age

To test:
1) Go to patron Details page (ie http://localhost:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=51)
2) Confirm that '(x years)' is showing next to the Date of Birth and is correct according to DOB (ie if DOB: 30/11/1996, Age: 19 years)
3) Edit date of birth to be a month later (ie from 30 November to 30 December) so that, as of the date you are testing, the patron has not had their birthday yet
4) Confirm that age changes to be one year younger
5) Edit date of birth to be a different year
6) Confirm that age changes accordingly

Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
members/moremember.pl