Skip to content

Commit

Permalink
Add parsing for invoices from Amazon.es (#560)
Browse files Browse the repository at this point in the history
* Added parsing for Amazon.es invoices

* Parse documents with multiple invoices and different sellers

* Be more strict with the regex
  • Loading branch information
esteve authored Jul 18, 2024
1 parent dfb1e0c commit bbc65ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/invoice2data/extract/templates/es/es.amazon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
issuer: amazon.es
fields:
amount: Total\s+(\d+,\d{2})\s€\s+IVA
amount_untaxed: \(IVA\s+excluido\)\s+\d+%\s+(\d+,\d{2})\s€
date: Fecha\s+de\s+la\s+entrega\s+(\d+\s+[A-z]+\s+\d+)\s+
invoice_number: Número\s+de\s+la\s+factura\s+([A-Z0-9\-]+)
vat: Vendido\s+por\s+.+\s+IVA\s+([A-Z0-9]+)
vat_rate: \(IVA\s+excluido\)\s+(\d+)%
partner_name: Vendido\s+por\s+(.+)\s+IVA\s+[A-Z0-9]+
keywords:
- LU20260743
-
- factura
options:
currency: EUR
date_formats:
- '%d %B %Y'
decimal_separator: ','

0 comments on commit bbc65ba

Please sign in to comment.