Use compact identifier code for Spanish identifier code

Since 06e183433933 the identifier code is formatted and not the compact code.
This commit is contained in:
Cédric Krier
2026-03-15 16:18:06 +01:00
parent 33856ac2a1
commit f48a5b156a
+2 -2
View File
@@ -32,8 +32,8 @@ class Identifier(metaclass=PoolMeta):
def es_code(self):
if self.type == 'eu_vat':
return self.code[2:]
return self.code
return self.code_compact[2:]
return self.code_compact
def es_vat_type(self):
country = self.es_country()