Align cutting families with Olist production data
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1m17s

This commit is contained in:
Cauê Faleiros
2026-08-12 14:09:29 -03:00
parent e7edb5c483
commit a574b032e0
11 changed files with 137 additions and 30 deletions

View File

@@ -45,7 +45,9 @@ const productionOrder = (overrides: Partial<ProductionOrderItem>): ProductionOrd
test('classifyCutFamily maps known product bases to internal cut families', () => {
assert.equal(classifyCutFamily('BASE LISA CAMISETA').key, 'BLCS');
assert.equal(classifyCutFamily('BASE LISA CAMISETA OVER').key, 'BLOS');
assert.equal(classifyCutFamily('BASE LISA MOLETOM CANGURU').key, 'BLPM');
assert.equal(classifyCutFamily('BASE LISA MOLETOM CANGURU').key, 'BLMC');
assert.equal(classifyCutFamily('BASE LISA CAMISETA PIMA').key, 'BLPM');
assert.equal(classifyCutFamily('BASE LISA REGATA MACHAO').key, 'BLRM');
assert.equal(classifyCutFamily('BONÉ').key, 'OUTROS');
});

View File

@@ -70,10 +70,10 @@ export interface CutPlan {
export const CUT_FAMILY_RULES: CutFamilyRule[] = [
{
key: 'BLPM',
label: 'Moletom',
materialLabel: 'BLPM',
keywords: ['MOLETOM'],
key: 'BLMC',
label: 'Moletom canguru',
materialLabel: 'BLMC',
keywords: ['MOLETOM CANGURU', 'MOLETOM'],
unitsPerRoll: null
},
{
@@ -84,10 +84,17 @@ export const CUT_FAMILY_RULES: CutFamilyRule[] = [
unitsPerRoll: null
},
{
key: 'BLMC',
label: 'Camiseta infantil',
materialLabel: 'BLMC',
keywords: ['INFANTIL', 'KIDS'],
key: 'BLPM',
label: 'Camiseta Pima',
materialLabel: 'BLPM',
keywords: ['CAMISETA PIMA', 'PIMA'],
unitsPerRoll: null
},
{
key: 'BLRM',
label: 'Regata',
materialLabel: 'BLRM',
keywords: ['REGATA'],
unitsPerRoll: null
},
{