Use correct info to decide when to show VAT fields
authorMagnus Hagander <magnus@hagander.net>
Wed, 22 Jan 2025 20:46:21 +0000 (21:46 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 22 Jan 2025 20:46:21 +0000 (21:46 +0100)
commit1389131e169a95d5b137dba5f26b0bd3466647e0
tree65e8d181ea419fc24d59c248aec2aff95e087f75
parent32e7912ba270c61f02d04a2f3b9b2d441f7cc6db
Use correct info to decide when to show VAT fields

The VAT refund fields on anything should be driven off whether there's
actual VAT on the invoice, not off the EU_VAT setting. In particular,
when using taxes and not being in the EU, EU_VAT should be turned off,
but we must still be able to refund the VAT...

Diagnosed by Steve Singer
postgresqleu/confreg/backendforms.py
postgresqleu/confreg/backendviews.py
postgresqleu/confsponsor/forms.py
postgresqleu/confsponsor/views.py