fix(address): smart parser splits numar into bloc/scara/apart/etaj (ORA-12899)

Addresses with commas after street (e.g. "Str.Dacia NR.15 BLOC Z2,SCARA A,AP.7")
caused NUMAR column overflow (max 10 chars). Parser now tokenizes by comma and
routes BL/SC/AP/ET/NR prefixes to proper columns. Also extracts NR/BLOC embedded
in street text. Import service now blocks orders when address creation fails
(returns ERROR instead of silently importing without address).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-04-01 09:19:47 +00:00
parent 115666155b
commit e478c35ecd
3 changed files with 170 additions and 49 deletions

View File

@@ -13,3 +13,10 @@
**Effort:** M (human: ~1 sapt / CC: ~1h)
**Context:** Depinde de infrastructura email/webhook disponibila la client. Implementare: SMTP simplu sau webhook URL configurabil in Settings.
**Depends on:** Lansare in productie + infrastructura email la client.
## P3: Fix script — handle missing orders in GoMag API
**What:** Fix script for 17 address-less orders should check if GoMag API returns data for each order, and report which orders couldn't be fixed.
**Why:** Old orders may be deleted or expired from GoMag API. Without this check, the fix script fails silently and the operator thinks all 17 were fixed.
**Effort:** S (human: ~10min / CC: ~2min)
**Context:** Part of the address overflow fix (Pas 5). The fix script re-downloads from GoMag API to get original address text, but doesn't verify the API response. Add empty-response check + report.
**Depends on:** Address parser fix (Pas 1-2) deployed.