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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user