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:
parent
df81c011d3
commit
3e0975102f
|
|
@ -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}$")
|
||||
|
|
|
|||
Loading…
Reference in New Issue