diff --git a/src/productClassification.ts b/src/productClassification.ts index a4c6cac..b1f759e 100644 --- a/src/productClassification.ts +++ b/src/productClassification.ts @@ -121,6 +121,12 @@ export const classifyProductType = (name: string): ProductTypeKey => { if (!normalizedName) return 'unknown'; + if (has(normalizedName, /\bSALDO ESTOQUE\b/)) return 'ignore_from_planning'; + if (has(normalizedName, /^(?:\d+\s+)?(?:MALHA|RIBANA)\b/)) return 'raw_material'; + if (has(normalizedName, /\b(?:RETALHO|RESIDUO)\s+(?:DE\s+)?MALHA\b/)) return 'raw_material'; + if (has(normalizedName, /\bFIO\b.*\bMALHARIA\b/)) return 'raw_material'; + if (has(normalizedName, /\b(?:LINHA|FIO) PARA COSTURA\b/)) return 'raw_material'; + if (has(normalizedName, /ETIQUETA|TAG|FITA/)) return 'raw_material'; if (has(normalizedName, /\bKIT\b/)) return 'kit_bundle'; if (has(normalizedName, /TRANSPARENTE PP|SACO DE SEGURANCA|MILHEIRO|SACOLA|EMBALAGEM/)) return 'packaging'; if (has(normalizedName, /PRENSA|MAQUINA|OVERLOCK/)) return 'equipment';