mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 16:45:24 +02:00
fix: map product line to LICENSE column (column T)
This commit is contained in:
@@ -184,7 +184,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, ['LINE', 'Line', 'Product Line']) || 'Unassigned';
|
const line = getColumnValue(row, ['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'
|
||||||
|
|||||||
Reference in New Issue
Block a user