mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 13:45:24 +02:00
fix: restore CPNP No. as Excel-resolved column, not virtual
CPNP_NO re-added to COLUMN_PATTERNS so resolveColumnIndices maps it to the real Excel column index. Removed it from VIRTUAL_COLS and editableColumns in App.tsx since data comes from the spreadsheet, not Supabase-only storage. Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
co-authored by
claude-flow
parent
1b4918a385
commit
9f3acd0631
@@ -180,7 +180,6 @@ export default function App() {
|
|||||||
[COLUMNS.ITEM_TO_LOGISTIC]: 'Item to Logistic',
|
[COLUMNS.ITEM_TO_LOGISTIC]: 'Item to Logistic',
|
||||||
[COLUMNS.ANNA_CHECK]: 'Anna Check',
|
[COLUMNS.ANNA_CHECK]: 'Anna Check',
|
||||||
[COLUMNS.ANNA_NOTE]: 'Anna Note',
|
[COLUMNS.ANNA_NOTE]: 'Anna Note',
|
||||||
[COLUMNS.CPNP_NO]: 'CPNP No.',
|
|
||||||
};
|
};
|
||||||
Object.entries(VIRTUAL_COLS).forEach(([idxStr, name]) => {
|
Object.entries(VIRTUAL_COLS).forEach(([idxStr, name]) => {
|
||||||
const idx = Number(idxStr);
|
const idx = Number(idxStr);
|
||||||
@@ -207,7 +206,6 @@ export default function App() {
|
|||||||
resolvedCols.VALIDATED_NOTE,
|
resolvedCols.VALIDATED_NOTE,
|
||||||
resolvedCols.PRODUCT_TYPE,
|
resolvedCols.PRODUCT_TYPE,
|
||||||
resolvedCols.ITEM_TO_LOGISTIC,
|
resolvedCols.ITEM_TO_LOGISTIC,
|
||||||
resolvedCols.CPNP_NO
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
headers.forEach((h: any, i: number) => {
|
headers.forEach((h: any, i: number) => {
|
||||||
|
|||||||
+1
-1
@@ -82,7 +82,7 @@ export const COLUMN_PATTERNS: Record<keyof typeof COLUMNS, string[]> = {
|
|||||||
ITEM_TO_LOGISTIC: ['item', 'logistic'],
|
ITEM_TO_LOGISTIC: ['item', 'logistic'],
|
||||||
ANNA_CHECK: ['anna', 'check'],
|
ANNA_CHECK: ['anna', 'check'],
|
||||||
ANNA_NOTE: ['anna', 'note'],
|
ANNA_NOTE: ['anna', 'note'],
|
||||||
CPNP_NO: [],
|
CPNP_NO: ['cpnp'],
|
||||||
// Virtual/Extra columns stay hardcoded and are NOT auto-detected from headers
|
// Virtual/Extra columns stay hardcoded and are NOT auto-detected from headers
|
||||||
// to prevent internal data from being shifted or overwritten by Excel column shifts.
|
// to prevent internal data from being shifted or overwritten by Excel column shifts.
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user