Commit 6b8b6a5
committed
fix(uyap): extract İhale Bedeli from UDF <data> section (values stored outside <content>)
Inspector confirmed the auction_result UDF stores filled values in a <data> section with semantic element names (<ihaleBedeli>4.654.000,00</ihaleBedeli>, <satisBedeliKalani>...</satisBedeliKalani>), NOT in the <content> CDATA (which holds only template labels). extract_udf_source_text read only <content>, so the İhale Bedeli value was never seen -> honest PENDING_REVIEW. 2026/263 worked because its amounts were inline in <content>.
Fix: _extract_content_text now also reads the UDF <data> section and appends KNOWN FINANCIAL fields (exact tag-name match: ihaleBedeli/muhammenBedel/kiymeti/odenmesiGerekenBedel) as canonical labeled lines ('İhale Bedeli: <value>'). The existing label->value extractor (with the multi-occurrence change) then picks up the value. Deterministic and non-fabricating: the value comes from the explicit semantic element (tag name = field identity); the card 'Satış Tutarı' is still never used; compound/personal/unknown tags (e.g. borcluAdi, satisBedeliKalani) are NOT appended (no false match, no personal-data leak). content.xml without <data> is unchanged (no regression).
Verified end-to-end: data-section UDF now yields P=1.234.567,89 via same_segment; personal <borcluAdi> excluded; inline UDF unchanged. +3 tests; 525 uyap/extract/reconcile/model/pilot tests pass.1 parent 772f5a1 commit 6b8b6a5
2 files changed
Lines changed: 86 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
66 | 102 | | |
67 | 103 | | |
68 | 104 | | |
| |||
96 | 132 | | |
97 | 133 | | |
98 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
99 | 142 | | |
100 | 143 | | |
101 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
89 | 132 | | |
90 | 133 | | |
91 | 134 | | |
| |||
0 commit comments