fix(parser): recognize abbreviated unit 'pausch.' (Rechnung R26-231 Anfahrt)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
dfuhrmann3 2026-07-13 12:51:09 +02:00
parent df81c011d3
commit 3e0975102f
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ def extract_invoice_items_pure_python(text):
unit_pattern = re.compile(
r"^(\d+(?:[\.,]\d+)?)\s*(Tag\(e\)|Std\.|Stk\.|Stunden|Stück|stk|stck|stück|"
r"Monat\(e\)|Monate|Personentage|Personentag|PT|Lizenz\(en\)|Lizenzen|Lizenz|"
r"Wartungspauschale|Pauschale|Pauschal|Psch\.)$",
r"Wartungspauschale|Pauschale|Pauschal|Pausch\.|Psch\.)$",
re.IGNORECASE,
)
price_stop_pattern = re.compile(r"^[\d\.]+,[\d]{2}$")