mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 11:55:22 +02:00
fix: force Column J for BB_UK reason column
This commit is contained in:
@@ -2261,11 +2261,11 @@ export const processBuyBoxExcel = async (fileOrBuffer: File | ArrayBuffer): Prom
|
||||
}
|
||||
|
||||
// Fallback to previous hardcoded indices if header search fails or for specific known sheet structures
|
||||
if (reasonIdx === -1 || (config.country === 'FR' && reasonIdx !== 18)) {
|
||||
if (config.country === 'FR') reasonIdx = 18; // Force Column S for FR
|
||||
if (reasonIdx === -1 || (config.country === 'FR' && reasonIdx !== 18) || (config.country === 'UK' && reasonIdx !== 9)) {
|
||||
if (config.country === 'FR') reasonIdx = 18; // Force Column S for FR (Index 18)
|
||||
else if (config.country === 'UK') reasonIdx = 9; // Force Column J for UK (Index 9)
|
||||
else if (reasonIdx === -1) {
|
||||
if (config.country === 'UK') reasonIdx = 9;
|
||||
else if (config.country === 'DE') reasonIdx = 13;
|
||||
if (config.country === 'DE') reasonIdx = 13;
|
||||
else if (config.country === 'IT') reasonIdx = 12;
|
||||
else if (config.country === 'ES') reasonIdx = 13;
|
||||
else reasonIdx = 13;
|
||||
|
||||
Reference in New Issue
Block a user