> .
>
*********** REPLY SEPARATOR ***********
On 16/05/2007 at 7:04 p.m. Olwen Williams wrote:
>Thanks, but that doesn't do the check digit calculations. And it looks
>as if it might fail for banks who use 3 digit suffixes as well.
>For those who don't know the check digit calculation multiplies each
>digit by a weight and adds the lot together then does something with the
>total divided by 10 or 11 and adds the final digit. There is a
>calculation over bank/branch and bank/branch/account
---
Karl
www.KIWIreviews.co.nz - Where Your Views Count
P Please consider the environment before printing this email.
I could be wrong, of course, just doesn't seem like the kind of thing
where you need a check digit. Would vastly reduce the number of
available accounts for a bank (even though with the combination of
branch & account number they have a huge amount available).
Cameron
Some time ago now I worked on PC, and before that payroll systems. The
algorithm used dates back to the 1960's!!!
> .
>
>
One of my clients is exploring the viability of a custom-designed e-tail module, and something like that would be a great 'peace of mind' feature to include.
Cheers...
*********** REPLY SEPARATOR ***********
On 17/05/2007 at 9:57 a.m. Olwen Williams wrote:
>Trust me that bank account numbers do. I phoned a friend who is a
>programmer for a bank last night, and he is going to track down the
>algorithm for me.
It is a great peace of mind thing. I think every one who writes payroll
systems uses it because it picks up the most common typing errors. Both
the branch number and the account number are validated.
Hope that helps,
James McGlinn
BCom, BSc, Zend Certified Engineer (PHP4, PHP5)
Director
Nerds Inc.
The Loft, 201 Hobson St, Auckland
(09) 377 5663 / (021) 633 234
http://www.nerdsinc.co.nz http://blog.phpdeveloper.co.nz
I have ssh access and whm access. Not sure how to get it back up - too many
connections. Can't kill connections, restarting mysql is not helping
Thanks
Michael Brandon
All you can do is verify certain parts of the account contain the right
amount of digits, and then verify the bank prefix is a real bank by
asking them "Is your bank ANZ", etc. The most common area for failure is
to move the first digit from the second number group into the bank
prefix, or vice versa.
All but a couple of banks use the same check digit validation over the
branch and account. Strangely enough my brother knew it off by heart
from his time as a computer operator for databank on the early 1970's.
For the account the weights are 0,10,6,8,4,2,1 and for the branch
6,3,7,9. Multiply the corresponding digit by the weight, and sum the
results. The answer has to be divisible by 11.
I thought there was another check digit on the bank/branch but it seems
that in this respect my memory was flawed.
When keying figures a common problem is transposing digits. This
algorithm traps that.
The banks that use a different calculation are a couple of smaller
banks. The Perl code has 4 but the bank code I got has only 2. They
are National Australia Bank, and Countrywide.
The missing ones from the bank routine are United bank which I think has
gone and the Reserve bank which I think does not have publicly
accessible accounts. Even government departments don't have reserve
bank accounts for everyday use. Westpac has a special branch to deal
with government banking.
*********** REPLY SEPARATOR ***********
On 18/05/2007 at 8:09 a.m. Olwen Williams wrote:
>All but a couple of banks use the same check digit validation over the
>branch and account. Strangely enough my brother knew it off by heart
>from his time as a computer operator for databank on the early 1970's.
>For the account the weights are 0,10,6,8,4,2,1 and for the branch
>6,3,7,9. Multiply the corresponding digit by the weight, and sum the
>results. The answer has to be divisible by 11.
Most entertaining, running that algo over some of my bank account numbers...
I apparently have a faulty account... because one of the account numbers comes to 89! (unless 0*10 is treated as 1*10)
But thanks for that nice, plain-text summary of the algo... could really come in handy if I could get my head around my dodgy account number. After all, where there is 1...
Cheers...
http://pear.php.net/package/Validate_NZ/docs/0.1.0/Validate_NZ/Validate_NZ.html
let me know off list
Rgrds
Byron
--
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to nzp...@googlegroups.com
To unsubscribe, send email to
nzphpug+u...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "NZ PHP Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nzphpug+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.