debug: add diagnostic logs to trace history merge for 59272EN

This commit is contained in:
Christian Vidal Wolf
2026-04-23 19:14:10 +02:00
parent c1e3960a20
commit 7ef9f62497
2 changed files with 20 additions and 0 deletions
+13
View File
@@ -186,11 +186,24 @@ export default function App() {
});
const articleNoIdx = resolvedCols.ARTICLE_NO;
const debugProduct = '59272EN';
const processedRows = rows.map(row => {
const articleNo = String(row[articleNoIdx]);
const synced = syncedData[articleNo];
const hist = historyData[articleNo];
if (articleNo === debugProduct) {
console.log('[DEBUG 59272EN] articleNo from row:', articleNo);
console.log('[DEBUG 59272EN] synced exists:', !!synced);
console.log('[DEBUG 59272EN] hist exists:', !!hist);
if (hist) {
console.log('[DEBUG 59272EN] hist[103]:', hist[103]);
console.log('[DEBUG 59272EN] hist length:', hist.length);
}
console.log('[DEBUG 59272EN] historyData keys count:', Object.keys(historyData).length);
console.log('[DEBUG 59272EN] historyData has key?:', debugProduct in historyData);
}
// Start with fresh Dropbox values (prices from Excel)
let finalRow = [...row];