@softwear/latestcollectioncore 1.0.122 → 1.0.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,15 +10,15 @@ const mappingPairs = [
10
10
  { category: 'ColorCode', from: 'colorCodeSupplier', to: 'colorFamily', mustMatch: true },
11
11
  { category: 'ColorDescription', from: 'colorSupplier', to: 'colorFamily' },
12
12
  { category: 'ProductGroup', from: 'articleGroupSupplier', to: 'articleGroup' },
13
- { category: 'BTEGroup', from: 'articleGroupSupplier', to: 'BTEGROUP', mustMatch: true },
14
- { category: 'DTBGroup', from: 'articleGroupSupplier', to: 'DTBGROUP', mustMatch: true },
15
- { category: 'FedasGroup', from: 'articleGroupSupplier', to: 'FEDASGROUP', mustMatch: true },
16
13
  { category: 'Collection', from: 'collectionSupplier', to: 'collection' },
17
14
  { category: 'CustomSize', from: 'sizeSupplier', to: '_customsize' },
18
15
  { category: 'Size', from: 'sizeSupplier', to: 'size' },
19
16
  { category: 'Gender', from: 'articleGroupSupplier', to: '_gender', mustMatch: true },
20
17
  { category: 'GenderSupplier', from: 'genderSupplier', to: '_gender', mustMatch: true },
21
18
  { category: 'ERM', from: ['_gender', 'articleGroup'], to: '_erm-code', mustMatch: true, defaultMappingSource: 'ermmapping' },
19
+ { category: 'BTEGroup', from: ['_gender', 'articleGroup'], to: 'BTEGROUP', mustMatch: true, defaultMappingSource: 'btemappingout' },
20
+ { category: 'DTBGroup', from: ['_gender', 'articleGroup'], to: 'DTBGROUP', mustMatch: true, defaultMappingSource: 'dtbmappingout' },
21
+ { category: 'FedasGroup', from: ['_gender', 'articleGroup'], to: 'FEDASGROUP', mustMatch: true, defaultMappingSource: 'fedasmappingout' },
22
22
  ];
23
23
  const evaluateFromExpr = function (sku, from) {
24
24
  if (typeof from == 'string')
package/dist/edifact.js CHANGED
@@ -53,6 +53,9 @@ const skusToPricat = function (skus, fromGLN, toGLN, supplierGLN, refID, date) {
53
53
  SeasonIndustry: sku.collection || sku.collectionSupplier,
54
54
  ColourSupplier: sku.colorSupplier || sku.colorFamily,
55
55
  ColourCodeSupplier: sku.colorCodeSupplier || sku.colorCode,
56
+ FEDASGROUP: sku.FEDASGROUP || '',
57
+ BTEGROUP: sku.BTEGROUP || '',
58
+ DTBGROUP: sku.DTBGROUP || '',
56
59
  MaterialName: sku['_quality'] || '',
57
60
  Gender: sku['_gender'] || '',
58
61
  Images: sku.images || '',
@@ -133,11 +136,11 @@ const pricatToCsv = function (pricat) {
133
136
  null,
134
137
  null,
135
138
  null,
139
+ r.FEDASGROUP !== '' ? r.FEDASGROUP : null,
140
+ r.DTBGROUP !== '' ? r.DTBGROUP : null,
136
141
  null,
137
142
  null,
138
- null,
139
- null,
140
- null,
143
+ r.BTEGROUP !== '' ? r.BTEGROUP : null,
141
144
  null,
142
145
  null,
143
146
  null,
package/dist/types.d.ts CHANGED
@@ -149,6 +149,9 @@ interface MarkedSkuI extends SkuI {
149
149
  usedByTenant?: boolean;
150
150
  warehouse?: string;
151
151
  qty?: number;
152
+ FEDASGROUP?: string;
153
+ DTBGROUP?: string;
154
+ BTEGROUP?: string;
152
155
  }
153
156
  interface ColorI {
154
157
  color: string;