Align cutting families with Olist production data
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1m17s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1m17s
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
@@ -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
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user