My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Earlier this year

  • Nov 13, 2009
    vatnumber-0.5.tar.gz (vatnumber-0.5.tar.gz) file uploaded by c...@b2ck.com   -  
    Labels: Type-Source OpSys-All
    Labels: Type-Source OpSys-All
  • Nov 13, 2009
    issue 4 (VAT for Colombia, South America) Owner changed by c...@b2ck.com   -  
    Owner: c...@b2ck.com
    Owner: c...@b2ck.com
  • Nov 13, 2009
    issue 5 (VAT for Chile, South America ) Owner changed by c...@b2ck.com   -  
    Owner: c...@b2ck.com
    Owner: c...@b2ck.com
  • Nov 13, 2009
    issue 5 (VAT for Chile, South America ) Status changed by c...@b2ck.com   -   Fix with changeset 3dac77ae9daa
    Status: Fixed
    Fix with changeset 3dac77ae9daa
    Status: Fixed
  • Nov 13, 2009
    issue 4 (VAT for Colombia, South America) Status changed by c...@b2ck.com   -   Fix with changeset 1b20d5a2e2a0
    Status: Fixed
    Fix with changeset 1b20d5a2e2a0
    Status: Fixed
  • Sep 04, 2009
    issue 5 (VAT for Chile, South America ) reported by juanf.ja...@miginternacional.com   -   The VAT number verification for Chile "Called RUT", is: def check_vat_cl(vat): ''' Check Chile VAT number. Called RUT ''' try: int(str(vat)[:len(str(vat))-1]) except ValueError: return False sum = 0 RUTLen = len(str(vat)) for i in range (RUTLen - 2, -1, -1): sum += int(str(vat)[i]) * (((RUTLen - 2 - i) % 6) + 2) Resto = 11 - (sum % 11) if Resto == 11: return str(vat)[len(str(vat)) -1] == '0' elif Resto == 10: return str(vat)[len(str(vat)) -1] in ('K', 'k') else: return str(Resto) == str(vat)[len(str(vat)) -1]
    The VAT number verification for Chile "Called RUT", is: def check_vat_cl(vat): ''' Check Chile VAT number. Called RUT ''' try: int(str(vat)[:len(str(vat))-1]) except ValueError: return False sum = 0 RUTLen = len(str(vat)) for i in range (RUTLen - 2, -1, -1): sum += int(str(vat)[i]) * (((RUTLen - 2 - i) % 6) + 2) Resto = 11 - (sum % 11) if Resto == 11: return str(vat)[len(str(vat)) -1] == '0' elif Resto == 10: return str(vat)[len(str(vat)) -1] in ('K', 'k') else: return str(Resto) == str(vat)[len(str(vat)) -1]
  • Sep 04, 2009
    issue 4 (VAT for Colombia, South America) reported by juanf.ja...@miginternacional.com   -   The algorithm for the VAT for Colombia (Called RUT) is: def check_vat_co(vat): ''' Check Colombian VAT number. Called RUT ''' if len(str(vat)) != 10: return False try: int(vat) except ValueError: return False nums = [3, 7, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 59, 67, 71] sum = 0 RUTLen = len(str(vat)) for i in range (RUTLen - 2, -1, -1): sum += int(str(vat)[i]) * nums [RUTLen - 2 - i] if sum % 11 > 1: return str(vat)[RUTLen - 1] == str(11 - (sum % 11)) else: return str(vat)[RUTLen - 1] == str(sum % 11) Example: 9001279338 is valid one. Regards Juan Fernando Jaramillo
    The algorithm for the VAT for Colombia (Called RUT) is: def check_vat_co(vat): ''' Check Colombian VAT number. Called RUT ''' if len(str(vat)) != 10: return False try: int(vat) except ValueError: return False nums = [3, 7, 13, 17, 19, 23, 29, 37, 41, 43, 47, 53, 59, 67, 71] sum = 0 RUTLen = len(str(vat)) for i in range (RUTLen - 2, -1, -1): sum += int(str(vat)[i]) * nums [RUTLen - 2 - i] if sum % 11 > 1: return str(vat)[RUTLen - 1] == str(11 - (sum % 11)) else: return str(vat)[RUTLen - 1] == str(sum % 11) Example: 9001279338 is valid one. Regards Juan Fernando Jaramillo
  • Mar 30, 2009
    vatnumber-0.4.tar.gz (vatnumber-0.4.tar.gz) file uploaded by cedric.k...@b2ck.com   -  
    Labels: Type-Source OpSys-All
    Labels: Type-Source OpSys-All
  • Mar 26, 2009
    issue 3 (Support for new VAT numbers in Spain) Status changed by cedric.k...@b2ck.com   -   Applied thanks.
    Status: Fixed
    Applied thanks.
    Status: Fixed
  • Mar 26, 2009
    issue 3 (Support for new VAT numbers in Spain) reported by car...@pemas.es   -   VAT numbers rules in Spain changed recently, this patch adds support to the new VAT numbers. The link to the official publication of the change: http://www.aeat.es/wps/portal/DetalleTributo?channel=a519a8880e43a110VgnVCM1000004ef01e0a____&ver=L&site=56d8237c0bc1ff00VgnVCM100000d7005a80____&idioma=es_ES&menu=4&img=5
    VAT numbers rules in Spain changed recently, this patch adds support to the new VAT numbers. The link to the official publication of the change: http://www.aeat.es/wps/portal/DetalleTributo?channel=a519a8880e43a110VgnVCM1000004ef01e0a____&ver=L&site=56d8237c0bc1ff00VgnVCM100000d7005a80____&idioma=es_ES&menu=4&img=5
  • Mar 23, 2009
    vatnumber-0.3.tar.gz (vatnumber-0.3.tar.gz) file uploaded by cedric.k...@b2ck.com   -  
    Labels: Type-Source OpSys-All
    Labels: Type-Source OpSys-All
  • Mar 18, 2009
    issue 2 (vat for romania is nto validated correctly) changed by cedric.k...@b2ck.com   -   Fix with changeset 09f2f3f02d88
    Status: Fixed
    Owner: cedric.k...@b2ck.com
    Fix with changeset 09f2f3f02d88
    Status: Fixed
    Owner: cedric.k...@b2ck.com
  • Mar 18, 2009
    issue 2 (vat for romania is nto validated correctly) reported by cristian.chiovari   -   What steps will reproduce the problem? 1. VAT numer validation for ROmania is not correct validated. 2. See http://sima-pc.com/nif.php? PHPSESSID=c613569c0b6c64f8728611d1f1b3cc50&pais=RO&nif=24736200 3. What is the expected output? What do you see instead? that number to be considerd a valid vat number for romania: 24736200 What version of the product are you using? On what operating system? latest dev version. Please provide any additional information below.
    What steps will reproduce the problem? 1. VAT numer validation for ROmania is not correct validated. 2. See http://sima-pc.com/nif.php? PHPSESSID=c613569c0b6c64f8728611d1f1b3cc50&pais=RO&nif=24736200 3. What is the expected output? What do you see instead? that number to be considerd a valid vat number for romania: 24736200 What version of the product are you using? On what operating system? latest dev version. Please provide any additional information below.
  • Jan 07, 2009
    source Wiki page edited by cedric.k...@b2ck.com

Older

  • Sep 29, 2008
    issue 1 (Which VAT numbers) changed by cedric.k...@b2ck.com   -   The project contains validation function for vat numbers or many countries. You can run: vatnumber.countries() to retrieve all the country codes that are implemented.
    Status: Fixed
    Owner: cedric.k...@b2ck.com
    Labels: Type-Other Type-Defect
    The project contains validation function for vat numbers or many countries. You can run: vatnumber.countries() to retrieve all the country codes that are implemented.
    Status: Fixed
    Owner: cedric.k...@b2ck.com
    Labels: Type-Other Type-Defect
  • Sep 22, 2008
    issue 1 (Which VAT numbers) reported by wichert   -   Please clarify what you mean with VAT numbers. English VAT numbers? Dutch VAT numbers? American VAT numbers? Those all look very different and have different validation rules.
    Please clarify what you mean with VAT numbers. English VAT numbers? Dutch VAT numbers? American VAT numbers? Those all look very different and have different validation rules.
  • Sep 19, 2008
    source Wiki page added by cedric.k...@b2ck.com
  • Sep 19, 2008
    Project vatnumber created by cedric.k...@b2ck.com   -   Python module to validate VAT numbers
    Python module to validate VAT numbers
 
Hosted by Google Code