django-getpaid / django-plans

Django application for managing account plans and quotas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TAX is applied if the user fills in VAT ID without country code

PetrDlouhy opened this issue · comments

If user fills in VAT ID without country code, the validator of the field passes, because it adds the country code before checking in vatnumber library.
This could lead to wrong tax charged, because the Taxation class gets the number without country code. Then the VIES check doesn't pass and the user is charged even if his VAT ID is valid.