fix: force Column J for BB_UK reason column

This commit is contained in:
Christian Vidal Wolf
2026-02-06 10:54:06 +01:00
parent 76193fb9bf
commit bd8f86007c
+4 -4
View File
@@ -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 // Fallback to previous hardcoded indices if header search fails or for specific known sheet structures
if (reasonIdx === -1 || (config.country === 'FR' && reasonIdx !== 18)) { if (reasonIdx === -1 || (config.country === 'FR' && reasonIdx !== 18) || (config.country === 'UK' && reasonIdx !== 9)) {
if (config.country === 'FR') reasonIdx = 18; // Force Column S for FR 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) { else if (reasonIdx === -1) {
if (config.country === 'UK') reasonIdx = 9; if (config.country === 'DE') reasonIdx = 13;
else if (config.country === 'DE') reasonIdx = 13;
else if (config.country === 'IT') reasonIdx = 12; else if (config.country === 'IT') reasonIdx = 12;
else if (config.country === 'ES') reasonIdx = 13; else if (config.country === 'ES') reasonIdx = 13;
else reasonIdx = 13; else reasonIdx = 13;