Refine planning product classification
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m15s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m15s
This commit is contained in:
@@ -121,6 +121,12 @@ export const classifyProductType = (name: string): ProductTypeKey => {
|
|||||||
|
|
||||||
if (!normalizedName) return 'unknown';
|
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, /\bKIT\b/)) return 'kit_bundle';
|
||||||
if (has(normalizedName, /TRANSPARENTE PP|SACO DE SEGURANCA|MILHEIRO|SACOLA|EMBALAGEM/)) return 'packaging';
|
if (has(normalizedName, /TRANSPARENTE PP|SACO DE SEGURANCA|MILHEIRO|SACOLA|EMBALAGEM/)) return 'packaging';
|
||||||
if (has(normalizedName, /PRENSA|MAQUINA|OVERLOCK/)) return 'equipment';
|
if (has(normalizedName, /PRENSA|MAQUINA|OVERLOCK/)) return 'equipment';
|
||||||
|
|||||||
Reference in New Issue
Block a user