← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 876200] Re: [base_vat] Basic VAT check when country specific check not defined in the module

 

On Monday 17 October 2011, you wrote:
> To me, this is a blocking error.
> 
> The application should allow to enter any VAT, as long as the basic
> rules of country code is followed.

Well, please consider the inverse logic, which is in fact applied in the 
"trunk-xrg" series (long ago):
 - if letters are provided, the VAT is checked against the country's specific 
algorithm (if available)
 - if they are /not/ provided, country is assumed to be partner's country. 
Fair, isn't it?
 - if the partner's country is not set, the current company's country is 
assumed (that's usually the case)

So, it is more usable, because we don't need to enter these letters. Then, for 
each country, there is a boolean field in country's settings to enable/disable 
VAT num. calculation, and another field to select default letters (used for the 
"EL" case, here).
In "trunk-xrg", you can add extra countries like that, just by adding their 
letters to "res.country" and disabling the check. Would that cover you?

At the end, this functionality (although inverse) is similar to what you're 
asking. The only missing is a check that VAT num's country must agree with 
partner's country (would we have any exceptions?).


-- 
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 OpenERP Project Group.
https://bugs.launchpad.net/bugs/876200

Title:
  [base_vat] Basic VAT check when country specific check not defined in
  the module

Status in OpenERP Addons (modules):
  Won't Fix

Bug description:
  The module base_vat does not consider all VAT countries worldwide.

  In case that a country specific validation is not defined in the
  base_vat module, only a basic country check should be performed, but
  otherwise should allow the VAT code to be introduced.

  The basic check should be as per
  http://en.wikipedia.org/wiki/VAT_identification_number#VAT_numbers_by_countries:

  The full identifier starts with an ISO 3166-1 alpha-2 country code
  (except for Greece which uses the non-standard country code EL) and
  then has between 5 and 12 characters. These 5 to 12 characters are
  numeric in most countries but in some countries they may contain
  letters.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/876200/+subscriptions


References