feat(data): map product line from column R

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