fix(search): address [object Object], suprafata from folosinte, owner tree separation
- Address: handle street/locality/county as objects (extract .name) Fixes 'Str. [object Object], Feleacu' 'Str. X, Feleacu' - Suprafata: fallback to total area from folosinte endpoint when immovable list and documentation APIs return null - Owners: use tree traversal (nodeId/parentNodeId) to detect radiated inscriptions. Walk up parent chain to check radiationDate/cancelled/ isActive/closed/status on ancestor inscription nodes. - Enhanced logging: first/last 3 partTwoRegs entries + node types for debugging owner structure in Dozzle
This commit is contained in:
@@ -1034,7 +1034,9 @@ export function ParcelSyncModule() {
|
||||
p.proprietariVechi
|
||||
? `Proprietari vechi: ${p.proprietariVechi}`
|
||||
: null,
|
||||
!p.proprietariActuali && !p.proprietariVechi && p.proprietari
|
||||
!p.proprietariActuali &&
|
||||
!p.proprietariVechi &&
|
||||
p.proprietari
|
||||
? `Proprietari: ${p.proprietari}`
|
||||
: null,
|
||||
p.solicitant
|
||||
@@ -1142,14 +1144,16 @@ export function ParcelSyncModule() {
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
{!p.proprietariActuali && !p.proprietariVechi && p.proprietari && (
|
||||
<div>
|
||||
<span className="text-xs text-muted-foreground block">
|
||||
Proprietari
|
||||
</span>
|
||||
<span>{p.proprietari}</span>
|
||||
</div>
|
||||
)}
|
||||
{!p.proprietariActuali &&
|
||||
!p.proprietariVechi &&
|
||||
p.proprietari && (
|
||||
<div>
|
||||
<span className="text-xs text-muted-foreground block">
|
||||
Proprietari
|
||||
</span>
|
||||
<span>{p.proprietari}</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{p.solicitant && (
|
||||
|
||||
Reference in New Issue
Block a user