Skip to content

Commit

Permalink
Fix Future Warning Possible nested set
Browse files Browse the repository at this point in the history
  • Loading branch information
bosd committed Jun 23, 2023
1 parent af47d75 commit 513b8bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/invoice2data/extract/templates/com/com.AzureInterior.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ fields:
start: 'Amount'
end: 'Subtotal\s{10,40}[$€]'
first_line:
- '(?P<sectionheader>(--- \w+(?:\s\S+)*) ---)'
- '([[](?P<code>\S+)[]]\s)(?P<name>[\S ]+)\s+(?P<qty>\d+[,.]\d+)\s((?P<unece_code>LTR)|(?P<uom>\w+))\s+(?P<price_unit>\d*[.,]?\d+[,.]\d+)\s+(?P<discount>\d+[,.]\d{2})\s+(?P<line_tax_percent>\d{1,2}[,.]\d{2})?%?\s*([$€]\s+)?(?P<price_subtotal>\d*[.,]?\d+[,.]\d+)'
- '(?P<sectionheader>--- \w+((?:\s\S+)*) ---)'
- '(\[(?P<code>\S+)\]\s)(?P<name>[\S ]+)\s+(?P<qty>\d+[,.]\d+)\s((?P<unece_code>LTR)|(?P<uom>\w+))\s+(?P<price_unit>\d*[.,]?\d+[,.]\d+)\s+(?P<discount>\d+[,.]\d{2})\s+(?P<line_tax_percent>\d{1,2}[,.]\d{2})?%?\s*([$€]\s+)?(?P<price_subtotal>\d*[.,]?\d+[,.]\d+)'
- '^(?P<line_note>\w[\S ]{15,120})$'
# The line below is not conform odoo standard output, but added for a mocked test.
# To be able to parse the following fields: barcode, unece_code (for uom matching)
# re-written L to unece code LTR
- '([*](?P<barcode>\S+)[*])\s*([[](?P<code>\S+)[]]\s)?(?P<name>[\S ]+)\s+(?P<qty>\d+[,.]\d+)\s(?P<unece_code>LTR)?\s+(?P<price_unit>\d*[.,]?\d+[,.]\d+)\s+(?P<discount>\d+[,.]\d{2})\s+(?P<line_tax_percent>\d{1,2}[,.]\d{2})?%?\s*([$€]\s+)?(?P<price_subtotal>\d*[.,]?\d+[,.]\d+)'
- '([*](?P<barcode>\S+)[*])\s*(\[(?P<code>\S+)\]\s)?(?P<name>[\S ]+)\s+(?P<qty>\d+[,.]\d+)\s(?P<unece_code>LTR)?\s+(?P<price_unit>\d*[.,]?\d+[,.]\d+)\s+(?P<discount>\d+[,.]\d{2})\s+(?P<line_tax_percent>\d{1,2}[,.]\d{2})?%?\s*([$€]\s+)?(?P<price_subtotal>\d*[.,]?\d+[,.]\d+)'
line:
- '^(?P<name>\w[\S ]{1,40})$'
types:
Expand Down

0 comments on commit 513b8bf

Please sign in to comment.