fix: normalize COLUMNS to lowercase через toLowerCase() (v1.0.63)
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<img src="/nubes-logo.svg" alt="Nubes">
|
<img src="/nubes-logo.svg" alt="Nubes">
|
||||||
<span class="title">Сверка договоров — LLM <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.62 — Lucee</span></span>
|
<span class="title">Сверка договоров — LLM <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.63 — Lucee</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -332,13 +332,12 @@ async function refreshSupps() {
|
|||||||
if (data.OK && data.ROWS) {
|
if (data.OK && data.ROWS) {
|
||||||
data.ROWS.forEach(function(r) {
|
data.ROWS.forEach(function(r) {
|
||||||
var supp = {};
|
var supp = {};
|
||||||
data.COLUMNS.forEach(function(c, ci) { supp[c] = r[ci]; });
|
data.COLUMNS.forEach(function(c, ci) { supp[c.toLowerCase()] = r[ci]; });
|
||||||
console.log('refreshSupps: supp=', supp);
|
console.log('refreshSupps: supp=', supp);
|
||||||
for (var i = 0; i < fileQueue.length; i++) {
|
for (var i = 0; i < fileQueue.length; i++) {
|
||||||
console.log(' cmp: doc_id=' + fileQueue[i].doc_id + ' vs DOCUMENT_ID=' + supp.DOCUMENT_ID + ' match=' + (fileQueue[i].doc_id === supp.DOCUMENT_ID));
|
if (fileQueue[i].doc_id === supp.document_id) {
|
||||||
if (fileQueue[i].doc_id === supp.DOCUMENT_ID) {
|
fileQueue[i].supp_id = supp.id;
|
||||||
fileQueue[i].supp_id = supp.ID;
|
fileQueue[i].supp_type = supp.type;
|
||||||
fileQueue[i].supp_type = supp.TYPE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user