#6004 (Move VatNumber into separate module)
by Luc Saffre · in Developers · assigned to Luc Saffre
Summary
With the current implementation we must create a Partner instance in order to verify whether a VAT number is valid. Also we need more flexibility because of Peppol.
Children
Comments
- 1 year, 6 months ago by Luc Saffre about #6004 (Move VatNumber into separate module) : I added a method countries.Country.get_stdnum_module() and tried to use stdnum also in tim2lino.timloader for validating the VAT numbers, only to discover that the vat modules of stdnum unfortunately to not have a format() function for vat modules (at least not for the Belgian and Estonian ones). So...
- 1 year, 6 months ago by Luc Saffre about #6004 (Move VatNumber into separate module) : I discovered the python-stdnum module. It provides validation and formatting for VAT numbers of many countries of the world. and not only for VAT numbers. Wow! And we actually were already using it because django-localflavor depends on it.
- 1 year, 6 months ago by Luc Saffre about #6004 (Move VatNumber into separate module) (1 reply) : I sent an email to a guy named Ivo van Doesburg, asking:
I am trying to understand why the django-vies repository has been archived. Do you know anything about it? I ask because as the author of Lino I am trying to simplify the code of our VAT plugin. - 1 year, 6 months ago by Luc Saffre about #6004 (Move VatNumber into separate module) : I leave this as open but with with decreased priority because there are more important things to do.
- 1 year, 6 months ago by Luc Saffre about #6004 (Move VatNumber into separate module) (1 reply) : There is a Python module vatnumber, but it is no longer maintained. I'm wondering why.
- 1 year, 6 months ago by Luc Saffre about #6004 (Move VatNumber into separate module) : Created new Ticket #6004 (Move VatNumber into separate module).