fix(performance): 쿠팡 광고 보고서 — 청구금액이 없는 날짜·파일은 오류 없이 넘어감

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 17:42:59 +09:00
parent bbe27eac8b
commit bab495d9f2
8 changed files with 17 additions and 17 deletions
+3 -11
View File
@@ -376,17 +376,9 @@
return;
}
saved = body.saved > 0;
const empty = body.empty_days || [];
// 업로드가 끝나면 창을 닫고 표·합계·그래프를 다시 그린다(onClose 새로고침). 금액이 없던 날짜가 있으면 알려 주고 창을 둔다.
if (saved && !empty.length) { m.close(); return; }
if (saved) {
out.innerHTML = '<p class="perf-notice is-ok">' + esc(body.name) + " " + fmt(body.saved) + "일 반영 · 합계 " + fmt(body.total) + "원</p>" +
'<p class="perf-notice is-warn">날짜 줄은 있지만 19열 금액이 없어 건너뛴 날짜 ' + empty.length + "일: " +
esc(empty.join(", ")) + "</p>" + '<p class="perf-muted" style="margin:6px 0 0">창을 닫으면 표·합계·그래프가 다시 계산됩니다.</p>';
fileInput.value = "";
return;
}
out.innerHTML = '<p class="perf-notice is-ok">반영할 날짜가 없습니다.</p>';
// 업로드가 끝나면 창을 닫고 표·합계·그래프를 다시 그린다(onClose 새로고침). 청구금액이 없는 날짜·파일은 그냥 넘어간다.
if (saved) { m.close(); return; }
out.innerHTML = '<p class="perf-notice is-ok">청구금액이 있는 날짜가 없어 반영한 날이 없습니다.</p>';
fileInput.value = "";
});
});