Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.0a2

Bug #11515 PPSN isn't valid if the modulus 23 checksum doesn't match
Submitted: 2007-07-03 15:46 UTC Modified: 2007-07-03 17:26 UTC
From: kguest Assigned: kguest
Status: Closed Package: Validate_IE (version CVS)
PHP Version: 5.1.2 OS:
Roadmaps: 0.3.0    
Subscription  


 [2007-07-03 15:46 UTC] kguest (Ken Guest)
Description: ------------ this document from the Revenue Commisioners dictates that the PPSN has a checksum letter: http://www.revenue.ie/doc/rev2guid.doc this one explains it better: http://emhain.wit.ie/~p02csd22/Emhain/final/finalreport.html

Comments

 [2007-07-03 15:51 UTC] kguest (Ken Guest)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. fixed and updated test file...
 [2007-07-03 17:26 UTC] kguest (Ken Guest)
thanks to Kae Verens for the check_mod23 code.
 [2007-08-22 10:25 UTC] jembo (Jem Pickard)
I believe the example in the attched link for Modulus 23 contains a typo (http://emhain.wit.ie/~p02csd22/Emhain/final/finalreport.html).... so be warned. Example should read: 3*2=6 0*3=0 0*4=0 4*5=20 8*6=48 9*7=63 3*8=24 0*9=0 and not: 3*2=6 3*3=9 0*4=0 4*5=20 8*6=48 9*7=63 3*8=24 0*9=0 ################# Your Personal Public Service (PPS) number is an eight digit number code, including a leading zero, with a check alpha digit. This is determined by a modulus 23 procedure. Thus, the check digit of 03984003 is calculated as follows: 3*2=6 3*3=9 0*4=0 4*5=20 8*6=48 9*7=63 3*8=24 0*9=0 -------------- Sum: 170/23 = 7 Remainder: 9 Add: 1 ---- 10 10 corresponds to the digit I on the alpha string. Therefore, the PPS number is 3984033I. ########################### Jembo