fix: map product line to LICENSE column (column T)

This commit is contained in:
Christian Vidal Wolf
2026-01-17 11:28:36 +01:00
parent 84d0291360
commit 5630d84e10
+1 -1
View File
@@ -184,7 +184,7 @@ const mapRowToRecord = (row: any, index: number): SalesRecord => {
const weekStr = getColumnValue(row, ['WEEK', 'Week', 'CW', 'Semana', 'KW', 'E']);
const weekNum = weekStr ? parseInt(weekStr.replace(/cw/i, '').trim(), 10) : NaN;
const week = isNaN(weekNum) ? undefined : weekNum;
const line = getColumnValue(row, ['LINE', 'Line', 'Product Line']) || 'Unassigned';
const line = getColumnValue(row, ['LICENSE', 'License']) || 'Unassigned';
const asin = getColumnValue(row, [
'CUSTOMER REFERENCE', 'AMAZON ASIN', 'ASIN', 'Asin', 'PRODUCT ID', 'ITEM IDENTIFIER', 'ASIN NO.', 'Product ASIN', 'IDENTIFIER'