← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 749958] Re: [trunk] [base_vat] [base_vat_mx]: Wrong validation

 

On Monday 04 April 2011, you wrote:
> Hello XRG, thanks for reply.
> 
> The legal form is:
> 
> when len(vat)==13
> [A-Z|a-z|ñ|Ñ|&][A-Z|a-z|ñ|Ñ|&][A-Z|a-z|ñ|Ñ|&][A-Z|a-z|ñ|Ñ|&][0-9][0-9][0-1]
> [1-9][0-3][0-9][A-Z|a-z|ñ|Ñ|&|0-9][A-Z|a-z|ñ|Ñ|&|0-9][A-Z|a-z|ñ|Ñ|&|0-9]
> 
> ABCD%y%m%dZX9
> ABCD850414ZX9
> 
> when len(vat)==12
> [A-Z|a-z|ñ|Ñ|&][A-Z|a-z|ñ|Ñ|&][A-Z|a-z|ñ|Ñ|&][0-9][0-9][0-1][1-9][0-3][0-9]
> [A-Z|a-z|ñ|Ñ|&|0-9][A-Z|a-z|ñ|Ñ|&|0-9][A-Z|a-z|ñ|Ñ|&|0-9] BCD%y%m%dZX9
> BCD850414ZX9
> 
> 
> Some companies, put a intermedian "-"
> BCD-850414-ZX9
> Or "_"
> So, I remove these special values with filter
> 
> 
> I can generate a patch with regexp.
> 
> 
> There is a reference:
> http://es.wikipedia.org/wiki/Registro_Federal_de_Contribuyentes_(M%C3%A9xic
> o)

Then, we could create the regex patch, indeed.
 I will have a look little later (now doing something else).

Thanks for your cooperation


-- 
Say NO to spam and viruses. Stop using Microsoft Windows!

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/749958

Title:
  [trunk] [base_vat] [base_vat_mx]: Wrong validation

Status in OpenERP Modules (addons):
  New

Bug description:
  Hello, the base_vat_mx validation there is bug.

  I have a fix
  I attach the patch



References