Skip to content

Commit

Permalink
Adding fields to Free_Fiber template to increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Mar 30, 2023
1 parent 29a26ba commit dc6f292
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/invoice2data/extract/templates/fr/fr.free.adsl-fiber.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ fields:
date_due: Date limite de paiement le (\d+ .+ \d{4})
invoice_number: Facture n°(\d+)
static_vat: FR60421938861
date_start: (\d{1,2}\w*\s\w+\s\d{4})\sau
date_end: au\s(\d{2}\s\w+\s\d{4})\s+
siren: 421 938 861
keywords:
- FR 604 219 388 61
- Facture
Expand All @@ -21,3 +24,6 @@ options:
languages:
- fr
decimal_separator: '.'
replace:
# We have to rewrite the start and end date for datepasrser to handle it.
- ['\sdu\s(?P<from>\d{1,2}\w*)(?P<separator>\sau\s\d{2})(?P<month_year>\s\w+\s\d{4})\s+', ' du \g<from>\g<month_year>\g<separator>\g<month_year> ']
3 changes: 3 additions & 0 deletions tests/compare/free_fiber.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"date_due": "2015-07-05",
"invoice_number": "562044387",
"vat": "FR60421938861",
"date_start": "2015-07-01",
"date_end": "2015-07-31",
"siren": "421 938 861",
"currency": "EUR",
"line_number": "FO10479674",
"client_id": "10577874",
Expand Down

0 comments on commit dc6f292

Please sign in to comment.