From 6b939e7d18b6bbd7e6e0b52346798169274c2225 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Thu, 25 Apr 2024 16:41:14 +0200 Subject: [PATCH] Use B+8 digits format for Spanish VAT IDs --- src/invoice2data/extract/templates/es/com.pepephone.yml | 2 +- src/invoice2data/extract/templates/es/es.digimobile.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invoice2data/extract/templates/es/com.pepephone.yml b/src/invoice2data/extract/templates/es/com.pepephone.yml index d42395f5..266a8e47 100644 --- a/src/invoice2data/extract/templates/es/com.pepephone.yml +++ b/src/invoice2data/extract/templates/es/com.pepephone.yml @@ -4,7 +4,7 @@ fields: amount_untaxed: Total\s\(base\simponible\)\s+(\d+,\d{2}) date: Fecha\sde\semisión:\s+(\d{2}/\d{2}/\d{4}) invoice_number: Número\sde\sfactura:\s+(\d+) - static_vat: ESB85033470 + static_vat: B85033470 vat_rate: Impuesto\s+\(IVA\s+(.+)%\) address: CIF:\s+[A-Z0-9]+\s+(.+España) static_partner_name: PEPEMOBILE S.L. diff --git a/src/invoice2data/extract/templates/es/es.digimobile.yml b/src/invoice2data/extract/templates/es/es.digimobile.yml index 4a17c141..971fc602 100644 --- a/src/invoice2data/extract/templates/es/es.digimobile.yml +++ b/src/invoice2data/extract/templates/es/es.digimobile.yml @@ -4,7 +4,7 @@ fields: amount_untaxed: IMPORTE\s+\(base\s+imponible\)\s+(\d+,\d{2}) date: Fecha\s+de\s+emisión\s+(\d{2}/\d{2}/\d{4}) invoice_number: FACTURA\s+Número:\s+([A-Z0-9]+) - static_vat: ESB84919760 + static_vat: B84919760 vat_rate: IMPUESTOS\s+\((\d+\.\d{2})%\s+IVA\) address: Domicilio\s+Social\s+en\s+(.+\(Madrid\)) static_partner_name: DIGI Spain Telecom, S.L.U.