mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 13:35:25 +02:00
debug: add diagnostic logs to trace history merge for 59272EN
This commit is contained in:
+13
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user