Closed duskybomb closed 6 years ago
The facturx.py
module is meant to be high-class. Everything related to the different XML flavors goes into the flavors
module.
Done.
Some thoughtful solutions in there. Well done.
Another dead body in your basement. Did you ever run this code? It doesn't work as you think.
codes_to_check = {
'currency': 'currency',
'country': 'seller_country',
'country': 'buyer_country',
'country': 'shipping_country'
}
On top of that, the validation doesn't work at all. And there is already a package that has all the base data you put in your CSV: https://pypi.org/project/pycountry/
I'll use that instead.
I was not sure how to sure iso-standard data, so I have stored it in json for now.