Skip Menu |

This queue is for tickets about the Algorithm-CheckDigits CPAN distribution.

Report information
The Basics
Id: 133609
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Algorithm-CheckDigits

People
Owner: Nobody in particular
Requestors: christoph.kaulich [...] gns-mbh.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Brasilian VAT-ID check is wrong
Date: Mon, 26 Oct 2020 12:23:39 +0000
To: "bug-Algorithm-CheckDigits [...] rt.cpan.org" <bug-Algorithm-CheckDigits [...] rt.cpan.org>
From: Christoph Kaulich <christoph.kaulich [...] gns-mbh.com>
Hello, the brasilian VAT-ID CNPJ 59104422/0057-04 Is reported as wrong, when I use the module inside kivitendo. Can this please be fixed? Thanks Christoph
Hello, Am Mo 26. Okt 2020, 08:24:08, christoph.kaulich@gns-mbh.com schrieb: Show quoted text
> Hello, > > the brasilian VAT-ID > > CNPJ 59104422/0057-04 > > Is reported as wrong, when I use the module inside kivitendo. Can this > please be fixed?
according to Wikipedia (https://en.wikipedia.org/wiki/VAT_identification_number#VAT_numbers_of_Latin_American_countries) there seem to be two different methods in Brazil: "Cadastro Nacional de Pessoa Jurídica (Companies) or Cadastro de Pessoa Física (Legal People)" "CNPJ composed of a base of 8 digits, a 4-digit radical, and 2 check digits. It is usually written like '11.111.111/0001-55' so as to be more human-readable and CPF composed of a base of 9 digits and 2 check digits written like '123.456.789-00'" Currently Algorithm::CheckDigits::M11_004 does only implement CPR. Kind regards, Mathias
Subject: AW: [rt.cpan.org #133609] Brasilian VAT-ID check is wrong
Date: Mon, 9 Nov 2020 07:42:17 +0000
To: "bug-Algorithm-CheckDigits [...] rt.cpan.org" <bug-Algorithm-CheckDigits [...] rt.cpan.org>
From: Christoph Kaulich <christoph.kaulich [...] gns-mbh.com>
Hello, so, a software relying on your software can't check Brazilian CPNJ correctly now? Did I get it right, I need to communicate that to kivitendo, as I need the possibility there to create Brazilian customers. Thank you, Christoph -- Christoph Kaulich mailto: christoph.kaulich@gns-mbh.com<mailto:christoph.kaulich@gns-mbh.com> tel.: +49 531 80112 17 fax: +49 531 80112 79 mobil: +49 175 2685705 ------------------------------------------------------------- GNS mbH Am Gaußberg 2 38114 Braunschweig Tel: +49 531 80112 0 Fax: +49 531 80112 79 Sitz und Amtsgericht Braunschweig HRB 4004 Steuernummer 14/203/31601 VAT-Id. DE173536746 Geschäftsführer: Stefan Hanson, Klaus Radtke, Claudius Schöne Show quoted text
________________________________ Von: Mathias Weidner via RT <bug-Algorithm-CheckDigits@rt.cpan.org> Gesendet: Sonntag, 8. November 2020 19:33 An: Christoph Kaulich <christoph.kaulich@gns-mbh.com> Betreff: [rt.cpan.org #133609] Brasilian VAT-ID check is wrong <URL: https://rt.cpan.org/Ticket/Display.html?id=133609 > Hello, Am Mo 26. Okt 2020, 08:24:08, christoph.kaulich@gns-mbh.com schrieb:
> Hello, > > the brasilian VAT-ID > > CNPJ 59104422/0057-04 > > Is reported as wrong, when I use the module inside kivitendo. Can this > please be fixed?
according to Wikipedia (https://en.wikipedia.org/wiki/VAT_identification_number#VAT_numbers_of_Latin_American_countries) there seem to be two different methods in Brazil: "Cadastro Nacional de Pessoa Jurídica (Companies) or Cadastro de Pessoa Física (Legal People)" "CNPJ composed of a base of 8 digits, a 4-digit radical, and 2 check digits. It is usually written like '11.111.111/0001-55' so as to be more human-readable and CPF composed of a base of 9 digits and 2 check digits written like '123.456.789-00'" Currently Algorithm::CheckDigits::M11_004 does only implement CPR. Kind regards, Mathias
Hello, Am Mo 09. Nov 2020, 02:42:38, christoph.kaulich@gns-mbh.com schrieb: Show quoted text
> Hello, > > so, a software relying on your software can't check Brazilian CPNJ > correctly now? Did I get it right, I need to communicate that to > kivitendo, as I need the possibility there to create Brazilian > customers.
the problem is, that I'm no expert on VAT numbers and the algorithms for their checksum. Therefore I can't help you here unless you provide me with a description of the algorithm and some examples to verify that I implemented it correct (there are at least four checks for every algorithm including valid and invalid checksums. I do not have the time to search for that information myself because I don't use the library in any current project now. Kind regards, Mathias