mirror of
https://gitlab.com/datalifeit/trytond-aeat_sii
synced 2023-12-13 20:30:37 +01:00
Replace country code when VAT is ES
From changeset-b5a24173572e
This commit is contained in:
parent
4082cb2ee5
commit
ba68801aff
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class BaseTrytonInvoiceMapper(Model):
|
|||
def counterpart_nif(self, invoice):
|
||||
if invoice.party.identifiers:
|
||||
nif = invoice.party.identifiers[0].code
|
||||
if nif.type == 'eu_vat':
|
||||
if nif.startswith('ES'):
|
||||
return nif[2:]
|
||||
return nif
|
||||
return ''
|
||||
|
|
Loading…
Reference in a new issue