New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adószám vizsgálata #2

Open
karsany opened this Issue Jan 8, 2014 · 2 comments

Comments

Projects
None yet
2 participants

@karsany karsany added the feature label Apr 2, 2014

@barczaG

This comment has been minimized.

Copy link

barczaG commented Sep 27, 2014

Szia @karsany, használtam a TAJ-os implementációdat, hálám jeléül megosztom az adószám ellenörző algoritmusnak a javascriptes implementációját, remélem hasznos lesz neked is.

          vatVerify: function(vat) {

                var regexp = /8{1}[0-9]{9}/
                if (regexp.test(vat)) {
                    sum = 0;
                    for (i = 0; i < 9; i++) {
                        sum += vat.substr(i,1) * (i+1);
                    }
                    return (sum % 11 == vat.substr(9, 1))
                }
                else return false;
            }

Köszi,
Gergő

@karsany

This comment has been minimized.

Copy link
Owner Author

karsany commented Sep 30, 2014

Szia @moglash !

Köszönöm az algoritmust, beraktam a programba.

Viszont amit küldtél, az az adóazonosító jel vizsgálata, így azt az issue-t zártam le. ( #1)

Üdv,
Ferkó

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment