@crystaldesign/basket-model 25.13.2-rc.8 → 25.13.2
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.
- package/build/cjs/index.js +206 -152
- package/build/esm/index.js +206 -152
- package/build/types/basket-model/src/BasketData.d.ts +11 -3
- package/build/types/basket-model/src/BasketData.d.ts.map +1 -1
- package/build/types/basket-model/src/EKTextGenerator.d.ts +1 -1
- package/build/types/basket-model/src/EKTextGenerator.d.ts.map +1 -1
- package/build/types/basket-model/src/OrderLine/OrderLineData.d.ts +20 -1
- package/build/types/basket-model/src/OrderLine/OrderLineData.d.ts.map +1 -1
- package/build/types/basket-model/src/OrderLine/VariantItemData.d.ts +4 -1
- package/build/types/basket-model/src/OrderLine/VariantItemData.d.ts.map +1 -1
- package/build/types/basket-model/src/OrderSetData.d.ts +4 -0
- package/build/types/basket-model/src/OrderSetData.d.ts.map +1 -1
- package/build/types/basket-model/src/PrintOptionsData.d.ts +1 -0
- package/build/types/basket-model/src/PrintOptionsData.d.ts.map +1 -1
- package/build/types/basket-model/src/clientSpecificData/SAPOrderLineData.d.ts +2 -1
- package/build/types/basket-model/src/clientSpecificData/SAPOrderLineData.d.ts.map +1 -1
- package/build/types/basket-model/src/index.d.ts +2 -2
- package/build/types/basket-model/src/index.d.ts.map +1 -1
- package/build/types/basket-model/src/types.d.ts +3 -0
- package/build/types/basket-model/src/types.d.ts.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -79,93 +79,95 @@ var GroupsData = /*#__PURE__*/_createClass__default["default"](function GroupsDa
|
|
|
79
79
|
this.Group = new GroupData(json);
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
var VariantItemData = /*#__PURE__*/function () {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
82
|
+
var VariantItemData = /*#__PURE__*/_createClass__default["default"](function VariantItemData(json) {
|
|
83
|
+
_classCallCheck__default["default"](this, VariantItemData);
|
|
84
|
+
_defineProperty__default["default"](this, "BasketID", void 0);
|
|
85
|
+
_defineProperty__default["default"](this, "OPT", void 0);
|
|
86
|
+
// OptionCodex
|
|
87
|
+
_defineProperty__default["default"](this, "OPTName", void 0);
|
|
88
|
+
// Name der Option
|
|
89
|
+
_defineProperty__default["default"](this, "MaskOPTName", void 0);
|
|
90
|
+
// overwritten name by mask
|
|
91
|
+
_defineProperty__default["default"](this, "OPTName_locales", void 0);
|
|
92
|
+
_defineProperty__default["default"](this, "TabGroup", void 0);
|
|
93
|
+
// TabGroup in welches sich die Option befindet
|
|
94
|
+
_defineProperty__default["default"](this, "MaskTabGroup", void 0);
|
|
95
|
+
_defineProperty__default["default"](this, "TabGroup_locales", void 0);
|
|
96
|
+
_defineProperty__default["default"](this, "OPV", void 0);
|
|
97
|
+
// OptionValue Codex
|
|
98
|
+
_defineProperty__default["default"](this, "vOPV", void 0);
|
|
99
|
+
// Benutzerfreudliche OptionValue Codex (IDM) welcher im Frontend angezeigt werden soll
|
|
100
|
+
_defineProperty__default["default"](this, "OPVName", void 0);
|
|
101
|
+
_defineProperty__default["default"](this, "MaskOPVName", void 0);
|
|
102
|
+
_defineProperty__default["default"](this, "OPVName_locales", void 0);
|
|
103
|
+
_defineProperty__default["default"](this, "OPVImage", void 0);
|
|
104
|
+
_defineProperty__default["default"](this, "OPVHexVal", void 0);
|
|
105
|
+
_defineProperty__default["default"](this, "SinglePrice", void 0);
|
|
106
|
+
// Aufpreis / Basepreis der option
|
|
107
|
+
_defineProperty__default["default"](this, "AddPercentage", void 0);
|
|
108
|
+
// Prozentueller Aufpreis der Option
|
|
109
|
+
_defineProperty__default["default"](this, "ShowOPVAsArticleNr", void 0);
|
|
110
|
+
_defineProperty__default["default"](this, "SendToSAP", void 0);
|
|
111
|
+
_defineProperty__default["default"](this, "ArticlePlaceholder", void 0);
|
|
112
|
+
_defineProperty__default["default"](this, "HideInOrderText", void 0);
|
|
113
|
+
_defineProperty__default["default"](this, "Hidden", void 0);
|
|
114
|
+
_defineProperty__default["default"](this, "IsDescribingState", void 0);
|
|
115
|
+
// If true it means this option does not change the Product but just the state like if an Ombrella is opened or closed
|
|
116
|
+
_defineProperty__default["default"](this, "FreeText", void 0);
|
|
117
|
+
_defineProperty__default["default"](this, "FreeTextLang", void 0);
|
|
118
|
+
_defineProperty__default["default"](this, "MeasureValue", void 0);
|
|
119
|
+
_defineProperty__default["default"](this, "MeasureUnit", void 0);
|
|
120
|
+
_defineProperty__default["default"](this, "isFreeText", void 0);
|
|
121
|
+
_defineProperty__default["default"](this, "isMeasureValue", void 0);
|
|
122
|
+
//public OPTEAN?: string = ""; // BARCode der Artikel / deprected
|
|
123
|
+
//public OPVEAN?: string = "";
|
|
124
|
+
//public FirstTime?: string = "";
|
|
125
|
+
_defineProperty__default["default"](this, "AddPrice", void 0);
|
|
126
|
+
_defineProperty__default["default"](this, "AddPriceFormatted", void 0);
|
|
127
|
+
_defineProperty__default["default"](this, "PriceUnit", void 0);
|
|
128
|
+
_defineProperty__default["default"](this, "PriceID", void 0);
|
|
129
|
+
_defineProperty__default["default"](this, "OCD", void 0);
|
|
130
|
+
_defineProperty__default["default"](this, "OptionOCD", void 0);
|
|
131
|
+
this.BasketID = json.BasketID;
|
|
132
|
+
this.OPT = json.OPT;
|
|
133
|
+
this.OPV = json.OPV;
|
|
134
|
+
this.OPTName = json.OPTName;
|
|
135
|
+
this.MaskOPTName = json.MaskOPTName;
|
|
136
|
+
this.OPTName_locales = json.OPTName_locales;
|
|
137
|
+
this.TabGroup = json.TabGroup;
|
|
138
|
+
this.MaskTabGroup = json.MaskTabGroup;
|
|
139
|
+
this.TabGroup_locales = json.TabGroup_locales;
|
|
140
|
+
this.vOPV = json.vOPV;
|
|
141
|
+
this.OPVName = json.OPVName;
|
|
142
|
+
this.MaskOPVName = json.MaskOPVName;
|
|
143
|
+
this.OPVName_locales = json.OPVName_locales;
|
|
144
|
+
this.OPVImage = json.OPVImage;
|
|
145
|
+
this.OPVHexVal = json.OPVHexVal;
|
|
146
|
+
this.FreeText = json.FreeText;
|
|
147
|
+
this.SinglePrice = json.SinglePrice;
|
|
148
|
+
this.AddPercentage = json.AddPercentage;
|
|
149
|
+
this.IsDescribingState = json.IsDescribingState;
|
|
150
|
+
this.SendToSAP = json.SendToSAP;
|
|
151
|
+
this.ArticlePlaceholder = json.ArticlePlaceholder;
|
|
152
|
+
this.HideInOrderText = json.HideInOrderText;
|
|
153
|
+
this.Hidden = json.Hidden;
|
|
154
|
+
this.ShowOPVAsArticleNr = json.ShowOPVAsArticleNr;
|
|
155
|
+
this.AddPrice = json.AddPrice;
|
|
156
|
+
if (this.AddPrice) this.AddPriceFormatted = json.AddPriceFormatted;
|
|
157
|
+
this.PriceUnit = json.PriceUnit;
|
|
158
|
+
this.PriceID = json.PriceID;
|
|
159
|
+
this.FreeText = json.FreeText;
|
|
160
|
+
this.MeasureValue = json.MeasureValue;
|
|
161
|
+
this.MeasureUnit = json.MeasureUnit;
|
|
162
|
+
this.isFreeText = json.isFreeText;
|
|
163
|
+
this.isMeasureValue = json.isMeasureValue;
|
|
164
|
+
this.OCD = json.OCD;
|
|
165
|
+
this.OptionOCD = json.OptionOCD;
|
|
166
|
+
this.FreeTextLang = json.FreeTextLang;
|
|
167
|
+
});
|
|
168
|
+
var getStringForHash = function getStringForHash(vd) {
|
|
169
|
+
return vd.OPT + '_' + vd.OPV + (vd.MeasureValue !== undefined ? '_' + vd.MeasureValue : '') + (vd.FreeText !== undefined ? '_' + vd.FreeText : '');
|
|
170
|
+
};
|
|
169
171
|
|
|
170
172
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
171
173
|
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -203,6 +205,7 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
203
205
|
// bei Flache Artikel wird dies manchmal verwendet
|
|
204
206
|
_defineProperty__default["default"](this, "ArticleGUID", void 0);
|
|
205
207
|
_defineProperty__default["default"](this, "Name", void 0);
|
|
208
|
+
_defineProperty__default["default"](this, "MaskName", void 0);
|
|
206
209
|
_defineProperty__default["default"](this, "Name_locales", void 0);
|
|
207
210
|
_defineProperty__default["default"](this, "MetaData_locales", void 0);
|
|
208
211
|
_defineProperty__default["default"](this, "Size", void 0);
|
|
@@ -226,6 +229,7 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
226
229
|
// Liste der Tabgroups
|
|
227
230
|
_defineProperty__default["default"](this, "SendToSAP", void 0);
|
|
228
231
|
_defineProperty__default["default"](this, "ArticlePlaceholder", void 0);
|
|
232
|
+
_defineProperty__default["default"](this, "CustomDimensions", void 0);
|
|
229
233
|
//wird bei Pfister verwendet um später wieder zu erkennen ob man zufällig wieder die selbe SAP Art Nummer (Basiskonfigurat) geplant hat
|
|
230
234
|
//ist ein eindeutiger Schlüssel zweier gleichen Planung unabhängig der Accounts
|
|
231
235
|
_defineProperty__default["default"](this, "ArticleVariantID", void 0);
|
|
@@ -290,6 +294,7 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
290
294
|
this.ArticleEAN = json.ArticleEAN;
|
|
291
295
|
this.ArticleGUID = json.ArticleGUID;
|
|
292
296
|
this.Name = json.Name;
|
|
297
|
+
this.MaskName = json.MaskName;
|
|
293
298
|
this.Size = json.Size;
|
|
294
299
|
this.Width = json.Width;
|
|
295
300
|
this.Depth = json.Depth;
|
|
@@ -300,6 +305,7 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
300
305
|
this.MetaData_locales = json.MetaData_locales;
|
|
301
306
|
this.Name_locales = json.Name_locales;
|
|
302
307
|
this.VariantDesc_locales = json.VariantDesc_locales;
|
|
308
|
+
this.CustomDimensions = json.CustomDimensions;
|
|
303
309
|
this.RuleDesc_locales = json.RuleDesc_locales;
|
|
304
310
|
this.Quantity = json.Quantity;
|
|
305
311
|
var vkPrice = json.VKPrice || json.VkPrice;
|
|
@@ -414,7 +420,11 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
414
420
|
if (!this.VariantBasketDatas) this.VariantBasketDatas = [];
|
|
415
421
|
for (var i = 0; i < this.VariantBasketDatas.length; i++) {
|
|
416
422
|
var v = this.VariantBasketDatas[i];
|
|
417
|
-
|
|
423
|
+
if (!v.OPT.endsWith('_val')) {
|
|
424
|
+
ret['OPT' + v.OPT] = 'OPV' + v.OPV;
|
|
425
|
+
} else {
|
|
426
|
+
ret['OPT' + v.OPT] = v.OPV;
|
|
427
|
+
}
|
|
418
428
|
if (v.MeasureValue || v.FreeText) {
|
|
419
429
|
var _ref;
|
|
420
430
|
ret['OPT' + v.OPT + '_val'] = (_ref = v.MeasureValue || v.FreeText) === null || _ref === void 0 ? void 0 : _ref.toString();
|
|
@@ -434,10 +444,10 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
434
444
|
return false;
|
|
435
445
|
}
|
|
436
446
|
|
|
437
|
-
/**
|
|
438
|
-
*
|
|
439
|
-
* @param t i18n translation instance
|
|
440
|
-
* @returns general Article description
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @param t i18n translation instance
|
|
450
|
+
* @returns general Article description
|
|
441
451
|
*/
|
|
442
452
|
}, {
|
|
443
453
|
key: "getArticleInfoText",
|
|
@@ -485,40 +495,34 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
485
495
|
!config.hideTotalPrices && this.CalcPrice ? t('basket.priceOverview.table.sum') + ': ' + DivaUtils__default["default"].formatPrice(this.CalcPrice, priceFormat) + ' \n' : '')
|
|
486
496
|
);
|
|
487
497
|
}
|
|
488
|
-
}, {
|
|
489
|
-
key: "getHash",
|
|
490
|
-
value: function getHash() {
|
|
491
|
-
var _this$VariantBasketDa2, _this$VariantBasketDa3;
|
|
492
|
-
return DivaUtils.md5(this.CatalogCodex + '_' + this.ArticleCodex + '_' + this.Quantity + '_' + ((_this$VariantBasketDa2 = (_this$VariantBasketDa3 = this.VariantBasketDatas) === null || _this$VariantBasketDa3 === void 0 || (_this$VariantBasketDa3 = _this$VariantBasketDa3.filter(function (v) {
|
|
493
|
-
return !v.IsDescribingState;
|
|
494
|
-
})) === null || _this$VariantBasketDa3 === void 0 ? void 0 : _this$VariantBasketDa3.map(function (v) {
|
|
495
|
-
return v.getStringForHash();
|
|
496
|
-
})) !== null && _this$VariantBasketDa2 !== void 0 ? _this$VariantBasketDa2 : []).join());
|
|
497
|
-
}
|
|
498
498
|
}, {
|
|
499
499
|
key: "getTinyVariantConfigurationDatas",
|
|
500
500
|
value: function getTinyVariantConfigurationDatas() {
|
|
501
|
-
var _this$
|
|
502
|
-
return [].concat(_toConsumableArray__default["default"]((_this$
|
|
501
|
+
var _this$VariantBasketDa2, _this$VariantBasketDa3, _this$VariantBasketDa4, _this$VariantBasketDa5;
|
|
502
|
+
return [].concat(_toConsumableArray__default["default"]((_this$VariantBasketDa2 = (_this$VariantBasketDa3 = this.VariantBasketDatas) === null || _this$VariantBasketDa3 === void 0 ? void 0 : _this$VariantBasketDa3.map(function (v) {
|
|
503
503
|
return {
|
|
504
504
|
OPT: v.OPT,
|
|
505
505
|
OPV: v.OPV,
|
|
506
|
+
OPTName: v.OPTName,
|
|
507
|
+
OPVName: v.OPVName,
|
|
506
508
|
OCD: v.OCD,
|
|
507
509
|
OptionOCD: v.OptionOCD,
|
|
508
510
|
IsDescribingState: v.IsDescribingState
|
|
509
511
|
};
|
|
510
|
-
})) !== null && _this$
|
|
512
|
+
})) !== null && _this$VariantBasketDa2 !== void 0 ? _this$VariantBasketDa2 : []), _toConsumableArray__default["default"]((_this$VariantBasketDa4 = (_this$VariantBasketDa5 = this.VariantBasketDatas) === null || _this$VariantBasketDa5 === void 0 || (_this$VariantBasketDa5 = _this$VariantBasketDa5.filter(function (v) {
|
|
511
513
|
return v.MeasureValue || v.FreeText;
|
|
512
|
-
})) === null || _this$
|
|
514
|
+
})) === null || _this$VariantBasketDa5 === void 0 ? void 0 : _this$VariantBasketDa5.map(function (v) {
|
|
513
515
|
var _ref2;
|
|
514
516
|
return {
|
|
515
517
|
OPT: v.OPT + '_val',
|
|
516
518
|
OPV: (_ref2 = v.MeasureValue || v.FreeText) === null || _ref2 === void 0 ? void 0 : _ref2.toString(),
|
|
519
|
+
OPTName: v.OPTName,
|
|
520
|
+
OPVName: v.OPVName,
|
|
517
521
|
OCD: v.OCD,
|
|
518
522
|
OptionOCD: v.OptionOCD,
|
|
519
523
|
IsDescribingState: v.IsDescribingState
|
|
520
524
|
};
|
|
521
|
-
})) !== null && _this$
|
|
525
|
+
})) !== null && _this$VariantBasketDa4 !== void 0 ? _this$VariantBasketDa4 : []));
|
|
522
526
|
}
|
|
523
527
|
}, {
|
|
524
528
|
key: "getAsJson",
|
|
@@ -533,6 +537,14 @@ var OrderLineData = /*#__PURE__*/function () {
|
|
|
533
537
|
}
|
|
534
538
|
}]);
|
|
535
539
|
}();
|
|
540
|
+
var getHash = function getHash(ol) {
|
|
541
|
+
var _ol$VariantBasketData, _ol$VariantBasketData2;
|
|
542
|
+
return DivaUtils.md5(ol.CatalogCodex + '_' + ol.ArticleCodex + '_' + ol.Quantity + '_' + ((_ol$VariantBasketData = (_ol$VariantBasketData2 = ol.VariantBasketDatas) === null || _ol$VariantBasketData2 === void 0 || (_ol$VariantBasketData2 = _ol$VariantBasketData2.filter(function (v) {
|
|
543
|
+
return !v.IsDescribingState;
|
|
544
|
+
})) === null || _ol$VariantBasketData2 === void 0 ? void 0 : _ol$VariantBasketData2.map(function (v) {
|
|
545
|
+
return getStringForHash(v);
|
|
546
|
+
})) !== null && _ol$VariantBasketData !== void 0 ? _ol$VariantBasketData : []).join());
|
|
547
|
+
};
|
|
536
548
|
|
|
537
549
|
var OrderSetData = /*#__PURE__*/function () {
|
|
538
550
|
function OrderSetData(json, ZKATNr, SetArticleNr, SetArticleNrPrefix, priceFormat) {
|
|
@@ -559,6 +571,7 @@ var OrderSetData = /*#__PURE__*/function () {
|
|
|
559
571
|
//= new SetImageData();
|
|
560
572
|
_defineProperty__default["default"](this, "Set2DImage", void 0);
|
|
561
573
|
// 2D bild der Planung
|
|
574
|
+
_defineProperty__default["default"](this, "SerieId", void 0);
|
|
562
575
|
_defineProperty__default["default"](this, "SetPrice", void 0);
|
|
563
576
|
_defineProperty__default["default"](this, "SetPriceFormatted", void 0);
|
|
564
577
|
_defineProperty__default["default"](this, "BruttoSetPrice", void 0);
|
|
@@ -604,6 +617,8 @@ var OrderSetData = /*#__PURE__*/function () {
|
|
|
604
617
|
// Letzte Versionierung -> kann überprüft werden ob in zwischenzeit das Modell versioniert wurde (neue Version gibt) / wird beim Speichern Clientseitig nicht gefüllt
|
|
605
618
|
_defineProperty__default["default"](this, "CatalogValidTo", void 0);
|
|
606
619
|
// VerfallsDatum / wird beim Speichern Clientseitig nicht gefüllt
|
|
620
|
+
_defineProperty__default["default"](this, "RetailCatalogNr", void 0);
|
|
621
|
+
// Programm Nr im CM
|
|
607
622
|
_defineProperty__default["default"](this, "ModelCodex", void 0);
|
|
608
623
|
// Modellvorauswahl ModellCodex
|
|
609
624
|
_defineProperty__default["default"](this, "ModelCatalogCodex", void 0);
|
|
@@ -642,18 +657,22 @@ var OrderSetData = /*#__PURE__*/function () {
|
|
|
642
657
|
_defineProperty__default["default"](this, "MetaData", void 0);
|
|
643
658
|
_defineProperty__default["default"](this, "MetaData_locales", void 0);
|
|
644
659
|
_defineProperty__default["default"](this, "AdditionalCatalogPrice", void 0);
|
|
660
|
+
_defineProperty__default["default"](this, "FavoriteAiRoomKeys", void 0);
|
|
661
|
+
// New field for multiple favorites
|
|
645
662
|
//war vohrer auskommentiert, Grund weiß ich nicht mehr. Kann ev. zu Problemen führen
|
|
646
663
|
//inzukunft sollen diese Inhalte über ein Webservice gezogen werden und per Hash abrufbar sein
|
|
647
664
|
_defineProperty__default["default"](this, "SetPlanData", void 0);
|
|
648
665
|
// 2D Planung
|
|
649
666
|
_defineProperty__default["default"](this, "SummaryInfo", []);
|
|
650
667
|
_defineProperty__default["default"](this, "BBox", void 0);
|
|
668
|
+
_defineProperty__default["default"](this, "IsIDMFormat", void 0);
|
|
651
669
|
this.SetID = json.SetID;
|
|
652
670
|
this.SetName = json.SetName;
|
|
653
671
|
this.SetName_locales = json.SetName_locales;
|
|
654
672
|
this.ProductSetName = json.ProductSetName;
|
|
655
673
|
this.SetImage = json.SetImage;
|
|
656
674
|
this.HQRenderScript = json.HQRenderScript;
|
|
675
|
+
this.IsIDMFormat = json.IsIDMFormat;
|
|
657
676
|
this.SetImages = json.SetImages; //: SetImageData[] = []; //= new SetImageData();
|
|
658
677
|
this.SetPrice = json.SetPrice;
|
|
659
678
|
this.SetPriceFormatted = DivaUtils__default["default"].formatPrice(this.SetPrice, priceFormat);
|
|
@@ -690,6 +709,7 @@ var OrderSetData = /*#__PURE__*/function () {
|
|
|
690
709
|
this.CatalogOfflineVersion = json.CatalogOfflineVersion;
|
|
691
710
|
this.CatalogOfflineFilesLastUpdate = json.CatalogOfflineFilesLastUpdate;
|
|
692
711
|
this.CatalogGUID = json.CatalogGUID;
|
|
712
|
+
this.RetailCatalogNr = json.RetailCatalogNr;
|
|
693
713
|
this.EkSetPrice = json.EkSetPrice;
|
|
694
714
|
this.EkCurrency = json.EkCurrency;
|
|
695
715
|
this.BruttoSetPrice = json.BruttoSetPrice;
|
|
@@ -711,6 +731,7 @@ var OrderSetData = /*#__PURE__*/function () {
|
|
|
711
731
|
this.SupplierGUID = json.SupplierGUID;
|
|
712
732
|
this.SupplierILN = json.SupplierILN;
|
|
713
733
|
this.SupplierCatalogName = json.SupplierCatalogName;
|
|
734
|
+
this.SerieId = json.SerieId;
|
|
714
735
|
this.SetPlanData = json.SetPlanData;
|
|
715
736
|
this.PlannerWarnings = json.PlannerWarnings;
|
|
716
737
|
this.Weight = json.Weight;
|
|
@@ -718,6 +739,7 @@ var OrderSetData = /*#__PURE__*/function () {
|
|
|
718
739
|
this.Volume = json.Volume;
|
|
719
740
|
this.VolumeUnit = json.VolumeUnit;
|
|
720
741
|
this.AdditionalCatalogPrice = json.AdditionalCatalogPrice;
|
|
742
|
+
this.FavoriteAiRoomKeys = json.FavoriteAiRoomKeys;
|
|
721
743
|
if (json.OrderLines) {
|
|
722
744
|
for (var i = 0; i < json.OrderLines.length; i++) {
|
|
723
745
|
this.OrderLines[i] = new OrderLineData(json.OrderLines[i], priceFormat);
|
|
@@ -766,8 +788,8 @@ var OrderSetData = /*#__PURE__*/function () {
|
|
|
766
788
|
this.SetPlanData = DivaUtils__default["default"].encodeBase64(setPlanData);
|
|
767
789
|
}
|
|
768
790
|
|
|
769
|
-
/**
|
|
770
|
-
* get the docking point infos of all orderlines of the set
|
|
791
|
+
/**
|
|
792
|
+
* get the docking point infos of all orderlines of the set
|
|
771
793
|
*/
|
|
772
794
|
}, {
|
|
773
795
|
key: "getDockingPointInfo",
|
|
@@ -810,10 +832,14 @@ var mCaption = 'M';
|
|
|
810
832
|
var artikelCaption = 'Artikel';
|
|
811
833
|
var preisCaption = 'Preis';
|
|
812
834
|
var newLine = '\r\n';
|
|
813
|
-
var _generateEKTextOfBasket = (function (basket, withoutPrices) {
|
|
835
|
+
var _generateEKTextOfBasket = (function (basket, withoutPrices, customDivaNr) {
|
|
814
836
|
var _basket$OrderSets;
|
|
815
837
|
var ekTextHead = '';
|
|
816
|
-
|
|
838
|
+
var divaNrtext = basket.DocumentVersion > 0 ? "".concat(basket.DivaNr, "-").concat(basket.DocumentVersion) : basket.DivaNr;
|
|
839
|
+
if (customDivaNr) {
|
|
840
|
+
divaNrtext = customDivaNr;
|
|
841
|
+
}
|
|
842
|
+
ekTextHead = writeText(ekTextHead, divaNrtext);
|
|
817
843
|
var sbSetOrderText = ekTextHead;
|
|
818
844
|
var preisLength = 9;
|
|
819
845
|
if (withoutPrices) {
|
|
@@ -827,13 +853,13 @@ var _generateEKTextOfBasket = (function (basket, withoutPrices) {
|
|
|
827
853
|
return sol.OrderText = '';
|
|
828
854
|
});
|
|
829
855
|
var _loop = function _loop() {
|
|
830
|
-
var _os$BBox, _basket$getSAPOrderLi;
|
|
856
|
+
var _os$BBox, _os$CatalogName, _basket$getSAPOrderLi;
|
|
831
857
|
var setText = '';
|
|
832
858
|
var os = basket.OrderSets[i];
|
|
833
859
|
if ((_os$BBox = os.BBox) !== null && _os$BBox !== void 0 && _os$BBox.Info) {
|
|
834
860
|
setText = writeText(setText, os.BBox.Info);
|
|
835
861
|
}
|
|
836
|
-
setText = writeText(setText, 'Modell: ' + os.CatalogName);
|
|
862
|
+
setText = writeText(setText, 'Modell: ' + DivaUtils__default["default"].stripTags((_os$CatalogName = os.CatalogName) !== null && _os$CatalogName !== void 0 ? _os$CatalogName : ''));
|
|
837
863
|
ols = os.OrderLines;
|
|
838
864
|
if (!ols || ols.length == 0) return 1; // continue
|
|
839
865
|
|
|
@@ -909,9 +935,9 @@ var addingSapOrderLinesToEkText = function addingSapOrderLinesToEkText(saporderL
|
|
|
909
935
|
//https://app.asana.com/0/686949732692179/692909200657046
|
|
910
936
|
var setText = '';
|
|
911
937
|
var _loop3 = function _loop3() {
|
|
912
|
-
var _sapOrderline$UseSAPA, _orderLine$ConfigArti;
|
|
938
|
+
var _sapOrderline$Name, _sapOrderline$UseSAPA, _orderLine$ConfigArti;
|
|
913
939
|
var sapOrderline = saporderLines[i];
|
|
914
|
-
var lines = getLines(artikelLength, artikelLength2Row, sapOrderline.Name);
|
|
940
|
+
var lines = getLines(artikelLength, artikelLength2Row, DivaUtils__default["default"].stripTags((_sapOrderline$Name = sapOrderline.Name) !== null && _sapOrderline$Name !== void 0 ? _sapOrderline$Name : ''));
|
|
915
941
|
var orderLine = ols.find(function (ol) {
|
|
916
942
|
return ol.RetailArticleNr === sapOrderline.ArticleNr;
|
|
917
943
|
});
|
|
@@ -944,15 +970,17 @@ var processPartListOrderLines = function processPartListOrderLines(basket, ols,
|
|
|
944
970
|
return sol.ArticleNrPrefix === 'ZKAT' && orderLine.RetailArticleNr == sol.ArticleNr;
|
|
945
971
|
})) && orderLine.IsPartlistArticle;
|
|
946
972
|
}).reduce(function (group, ol) {
|
|
947
|
-
var _group$category;
|
|
948
|
-
var category = ol.Name + '|' + ol.TypeNr + '|' + ol.SetID + '|' + ol.ArticleCodex
|
|
973
|
+
var _ol$Name, _ol$VariantBasketData, _group$category;
|
|
974
|
+
var category = DivaUtils__default["default"].stripTags((_ol$Name = ol.Name) !== null && _ol$Name !== void 0 ? _ol$Name : '') + '|' + ol.TypeNr + '|' + ol.SetID + '|' + ol.ArticleCodex + '|' + ((_ol$VariantBasketData = ol.VariantBasketDatas) === null || _ol$VariantBasketData === void 0 ? void 0 : _ol$VariantBasketData.map(function (v) {
|
|
975
|
+
return v.OPT + v.OPV;
|
|
976
|
+
}).join(';'));
|
|
949
977
|
group[category] = (_group$category = group[category]) !== null && _group$category !== void 0 ? _group$category : [];
|
|
950
978
|
group[category].push(ol);
|
|
951
979
|
return group;
|
|
952
980
|
}, {});
|
|
953
981
|
var retval = '';
|
|
954
982
|
var _loop4 = function _loop4() {
|
|
955
|
-
var _basket$getSAPOrderLi3, _basket$getSAPOrderLi4, _basket$getSAPOrderLi5, _orderLine$ConfigArti2;
|
|
983
|
+
var _basket$getSAPOrderLi3, _basket$getSAPOrderLi4, _basket$getSAPOrderLi5, _orderLine$Name, _orderLine$ConfigArti2;
|
|
956
984
|
var groupedOl = groupedOls[key];
|
|
957
985
|
var orderLine = groupedOl[0];
|
|
958
986
|
var sol = (_basket$getSAPOrderLi3 = (_basket$getSAPOrderLi4 = basket.getSAPOrderLines()) === null || _basket$getSAPOrderLi4 === void 0 ? void 0 : _basket$getSAPOrderLi4.find(function (sol) {
|
|
@@ -965,7 +993,7 @@ var processPartListOrderLines = function processPartListOrderLines(basket, ols,
|
|
|
965
993
|
}, 0).toString();
|
|
966
994
|
setOrderText += appendToTheRight(mLength, quantity);
|
|
967
995
|
}
|
|
968
|
-
var lines = getLines(artikelLength, newArtikelLength2Row, orderLine.Name);
|
|
996
|
+
var lines = getLines(artikelLength, newArtikelLength2Row, DivaUtils__default["default"].stripTags((_orderLine$Name = orderLine.Name) !== null && _orderLine$Name !== void 0 ? _orderLine$Name : ''));
|
|
969
997
|
var articleNumber = (_orderLine$ConfigArti2 = orderLine.ConfigArticleCodex) !== null && _orderLine$ConfigArti2 !== void 0 ? _orderLine$ConfigArti2 : orderLine.ArticleCodex;
|
|
970
998
|
|
|
971
999
|
//Anforderung von Polypol auch die Typennummer anzugeben
|
|
@@ -1018,8 +1046,8 @@ var processNonPartlistOrderlines = function processNonPartlistOrderlines(basket,
|
|
|
1018
1046
|
return sol.ArticleNrPrefix === 'ZKAT' && orderLine.RetailArticleNr === sol.ArticleNr;
|
|
1019
1047
|
});
|
|
1020
1048
|
if (sol) {
|
|
1021
|
-
var _orderLine$ConfigArti3, _orderLine$VariantBas, _orderLine$VariantBas2, _orderLine$ConfigPric;
|
|
1022
|
-
var lines = getLines(artikelLength, artikelLength2Row, orderLine.Name);
|
|
1049
|
+
var _orderLine$Name2, _orderLine$ConfigArti3, _orderLine$VariantBas, _orderLine$VariantBas2, _orderLine$ConfigPric;
|
|
1050
|
+
var lines = getLines(artikelLength, artikelLength2Row, DivaUtils__default["default"].stripTags((_orderLine$Name2 = orderLine.Name) !== null && _orderLine$Name2 !== void 0 ? _orderLine$Name2 : ''));
|
|
1023
1051
|
var articleNumber = (_orderLine$ConfigArti3 = orderLine.ConfigArticleCodex) !== null && _orderLine$ConfigArti3 !== void 0 ? _orderLine$ConfigArti3 : orderLine.ArticleCodex;
|
|
1024
1052
|
|
|
1025
1053
|
//Anforderung von Polypol auch die Typennummer anzugeben
|
|
@@ -1052,11 +1080,11 @@ var processNonPartlistOrderlines = function processNonPartlistOrderlines(basket,
|
|
|
1052
1080
|
}
|
|
1053
1081
|
|
|
1054
1082
|
/* Activate when base prices and additional prices should be displayed. */
|
|
1055
|
-
/*if (orderLine.ConfigPriceDatas?.BasePrice && !withoutPrices) {
|
|
1056
|
-
sapOrderLineText += appendToTheRight(mLength + 1, ' ');
|
|
1057
|
-
sapOrderLineText += appendToTheRight(artikelLength, 'Basispreis');
|
|
1058
|
-
sapOrderLineText += appendToTheLeft(preisLength - 6, formatPrice(orderLine.ConfigPriceDatas?.BasePrice.toString() ?? '0'));
|
|
1059
|
-
sapOrderLineText += newLine + newLine;
|
|
1083
|
+
/*if (orderLine.ConfigPriceDatas?.BasePrice && !withoutPrices) {
|
|
1084
|
+
sapOrderLineText += appendToTheRight(mLength + 1, ' ');
|
|
1085
|
+
sapOrderLineText += appendToTheRight(artikelLength, 'Basispreis');
|
|
1086
|
+
sapOrderLineText += appendToTheLeft(preisLength - 6, formatPrice(orderLine.ConfigPriceDatas?.BasePrice.toString() ?? '0'));
|
|
1087
|
+
sapOrderLineText += newLine + newLine;
|
|
1060
1088
|
}*/
|
|
1061
1089
|
/* -------------------------------------------------------------------- */
|
|
1062
1090
|
|
|
@@ -1179,16 +1207,16 @@ var getLines = function getLines(maxLengthColumn1Row, maxLengthColumn2Row, value
|
|
|
1179
1207
|
lines.push(line);
|
|
1180
1208
|
return lines;
|
|
1181
1209
|
};
|
|
1182
|
-
var addVariants = function addVariants(articleLength, orderLine, articleLength2Row, startPositionArticle2Row
|
|
1183
|
-
var _orderLine$
|
|
1184
|
-
(_orderLine$ConfigPric2 = orderLine.ConfigPriceDatas) === null || _orderLine$ConfigPric2 === void 0 ? void 0 : _orderLine$ConfigPric2.AdditionalPrices;
|
|
1210
|
+
var addVariants = function addVariants(articleLength, orderLine, articleLength2Row, startPositionArticle2Row) {
|
|
1211
|
+
var _orderLine$VariantBas3, _orderLine$VariantBas4;
|
|
1185
1212
|
var variantDatas = (_orderLine$VariantBas3 = (_orderLine$VariantBas4 = orderLine.VariantBasketDatas) === null || _orderLine$VariantBas4 === void 0 ? void 0 : _orderLine$VariantBas4.filter(function (vd) {
|
|
1186
1213
|
return !vd.Hidden && (!vd.SendToSAP || !vd.ArticlePlaceholder) && vd.BasketID == orderLine.BasketID;
|
|
1187
1214
|
})) !== null && _orderLine$VariantBas3 !== void 0 ? _orderLine$VariantBas3 : [];
|
|
1188
1215
|
var variantDataText = '';
|
|
1189
1216
|
for (var i = 0; i < variantDatas.length; i++) {
|
|
1217
|
+
var _vb$OPTName, _vb$OPVName;
|
|
1190
1218
|
var vb = variantDatas[i];
|
|
1191
|
-
var remark = vb.OPTName + ': ' + vb.OPVName;
|
|
1219
|
+
var remark = DivaUtils__default["default"].stripTags((_vb$OPTName = vb.OPTName) !== null && _vb$OPTName !== void 0 ? _vb$OPTName : '') + ': ' + DivaUtils__default["default"].stripTags((_vb$OPVName = vb.OPVName) !== null && _vb$OPVName !== void 0 ? _vb$OPVName : '');
|
|
1192
1220
|
if (vb.vOPV) remark += ' (' + vb.vOPV + ')';
|
|
1193
1221
|
|
|
1194
1222
|
/* Activate when base prices and additional prices should be displayed. */
|
|
@@ -1204,12 +1232,12 @@ var addVariants = function addVariants(articleLength, orderLine, articleLength2R
|
|
|
1204
1232
|
variantDataText += writeOtherLines(vbLines, startPositionArticle2Row /*additionalPrice ? true : false*/);
|
|
1205
1233
|
|
|
1206
1234
|
/* Activate when base prices and additional prices should be displayed. */
|
|
1207
|
-
/*if (additionalPrice && false) {
|
|
1208
|
-
variantDataText += appendToTheLeft(
|
|
1209
|
-
preisLength + (artikelLength - vbLines[vbLines.length - 1].length) - 5,
|
|
1210
|
-
formatPrice(additionalPrice?.Price.toString() ?? '0'),
|
|
1211
|
-
);
|
|
1212
|
-
variantDataText += newLine;
|
|
1235
|
+
/*if (additionalPrice && false) {
|
|
1236
|
+
variantDataText += appendToTheLeft(
|
|
1237
|
+
preisLength + (artikelLength - vbLines[vbLines.length - 1].length) - 5,
|
|
1238
|
+
formatPrice(additionalPrice?.Price.toString() ?? '0'),
|
|
1239
|
+
);
|
|
1240
|
+
variantDataText += newLine;
|
|
1213
1241
|
}*/
|
|
1214
1242
|
}
|
|
1215
1243
|
return variantDataText;
|
|
@@ -1251,6 +1279,9 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1251
1279
|
_defineProperty__default["default"](this, "Servername", void 0);
|
|
1252
1280
|
_defineProperty__default["default"](this, "CreationDate", void 0);
|
|
1253
1281
|
_defineProperty__default["default"](this, "SendIWOBasket", false);
|
|
1282
|
+
_defineProperty__default["default"](this, "MatchingProductId", void 0);
|
|
1283
|
+
_defineProperty__default["default"](this, "MatchingProductRetailerArticleNr", void 0);
|
|
1284
|
+
_defineProperty__default["default"](this, "RetailArticleNr", void 0);
|
|
1254
1285
|
_defineProperty__default["default"](this, "ProductSetName", void 0);
|
|
1255
1286
|
_defineProperty__default["default"](this, "ReportConfigIdentifier", void 0);
|
|
1256
1287
|
_defineProperty__default["default"](this, "OrganizationId", void 0);
|
|
@@ -1332,6 +1363,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1332
1363
|
_defineProperty__default["default"](this, "_discounts", []);
|
|
1333
1364
|
_defineProperty__default["default"](this, "AdditionalPrices", []);
|
|
1334
1365
|
_defineProperty__default["default"](this, "OrderStatus", void 0);
|
|
1366
|
+
_defineProperty__default["default"](this, "OriginBaseUrl", void 0);
|
|
1335
1367
|
//Readonly finished
|
|
1336
1368
|
_defineProperty__default["default"](this, "UseFavoritesAsVariants", false);
|
|
1337
1369
|
// Wird benötigt beim Laden einer Mutter DivaNr mit Varianten
|
|
@@ -1342,6 +1374,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1342
1374
|
// Enthält URL zum gerenderten Bild.
|
|
1343
1375
|
_defineProperty__default["default"](this, "PDFDocumentURL", void 0);
|
|
1344
1376
|
// Link zu PDF für IWOFurn. Wird ServerSeitig beim BasketToIwoFurnConverter gesetzt
|
|
1377
|
+
_defineProperty__default["default"](this, "ReturnTo", void 0);
|
|
1345
1378
|
_defineProperty__default["default"](this, "pdfs", void 0);
|
|
1346
1379
|
_defineProperty__default["default"](this, "PDFContent", void 0);
|
|
1347
1380
|
// HTML für das Serverseitige PDF erstellen
|
|
@@ -1387,6 +1420,9 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1387
1420
|
this.ApplicationEnvironment = json.ApplicationEnvironment;
|
|
1388
1421
|
this.catalogStatus = json.catalogStatus;
|
|
1389
1422
|
this.SendIWOBasket = json.SendIWOBasket;
|
|
1423
|
+
this.RetailArticleNr = json.RetailArticleNr;
|
|
1424
|
+
this.MatchingProductId = json.MatchingProductId;
|
|
1425
|
+
this.MatchingProductRetailerArticleNr = json.MatchingProductRetailerArticleNr;
|
|
1390
1426
|
this.ConverterStatus3D = json.ConverterStatus3D;
|
|
1391
1427
|
this.ConverterFormat3D = json.ConverterFormat3D;
|
|
1392
1428
|
this.ProductSetName = json.ProductSetName;
|
|
@@ -1414,6 +1450,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1414
1450
|
this.ReportConfigIdentifier = json.ReportConfigIdentifier;
|
|
1415
1451
|
this.ClientLanguage = json.ClientLanguage;
|
|
1416
1452
|
this.ClientRemark = json.ClientRemark;
|
|
1453
|
+
this.ReturnTo = json.ReturnTo;
|
|
1417
1454
|
this.DocumentVersion = Number(json.DocumentVersion);
|
|
1418
1455
|
this.UniqueID = json.UniqueID;
|
|
1419
1456
|
this.Status = json.Status;
|
|
@@ -1486,6 +1523,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1486
1523
|
//this.PriceInfo = priceInfo;
|
|
1487
1524
|
this.PrintOptions = json.PrintOptions;
|
|
1488
1525
|
this.OrderStatus = json.OrderStatus;
|
|
1526
|
+
this.OriginBaseUrl = json.OriginBaseUrl;
|
|
1489
1527
|
}
|
|
1490
1528
|
return _createClass__default["default"](BasketData, [{
|
|
1491
1529
|
key: "OrigZKATNr",
|
|
@@ -1567,6 +1605,15 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1567
1605
|
return price + addPrice.Price;
|
|
1568
1606
|
}, 0)) !== null && _this$AdditionalCatal3 !== void 0 ? _this$AdditionalCatal3 : 0);
|
|
1569
1607
|
}
|
|
1608
|
+
|
|
1609
|
+
// calculated from all the Sets
|
|
1610
|
+
}, {
|
|
1611
|
+
key: "EkPrice",
|
|
1612
|
+
get: function get() {
|
|
1613
|
+
return this.OrderSets.reduce(function (price, set) {
|
|
1614
|
+
return price + set.EkSetPrice;
|
|
1615
|
+
}, 0);
|
|
1616
|
+
}
|
|
1570
1617
|
}, {
|
|
1571
1618
|
key: "AdditionalCatalogPrice",
|
|
1572
1619
|
get: function get() {
|
|
@@ -1672,6 +1719,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1672
1719
|
this.UniqueID = date.getTime().toString();
|
|
1673
1720
|
this.PDFDocumentURL = undefined;
|
|
1674
1721
|
this.PriceFormat = DivaUtils__default["default"].defaultPriceFormat;
|
|
1722
|
+
this.OriginBaseUrl = window.location.origin + window.location.pathname;
|
|
1675
1723
|
}
|
|
1676
1724
|
}, {
|
|
1677
1725
|
key: "clearBasketClientData",
|
|
@@ -1930,21 +1978,23 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1930
1978
|
}, {
|
|
1931
1979
|
key: "getReportConfig",
|
|
1932
1980
|
value: function getReportConfig() {
|
|
1933
|
-
var _this$PrintOptions, _this$PrintOptions2, _this$PrintOptions3, _this$PrintOptions4, _this$PrintOptions5, _this$PrintOptions6, _this$PrintOptions7, _this$PrintOptions8, _this$PrintOptions9, _this$PrintOptions10, _this$PrintOptions11, _this$PrintOptions12, _this$PrintOptions13;
|
|
1981
|
+
var _this$PrintOptions, _this$PrintOptions2, _this$PrintOptions3, _this$PrintOptions4, _this$PrintOptions5, _this$PrintOptions6, _this$PrintOptions7, _this$PrintOptions8, _this$PrintOptions9, _this$PrintOptions10, _this$PrintOptions11, _this$PrintOptions12, _this$PrintOptions13, _this$PrintOptions14, _this$PrintOptions15;
|
|
1934
1982
|
return {
|
|
1935
1983
|
printWithGDPR: !!((_this$PrintOptions = this.PrintOptions) !== null && _this$PrintOptions !== void 0 && _this$PrintOptions.Gdpr),
|
|
1936
1984
|
printWithPlanningSketch: !!((_this$PrintOptions2 = this.PrintOptions) !== null && _this$PrintOptions2 !== void 0 && _this$PrintOptions2.PlanningSketch),
|
|
1937
1985
|
printWithRemark: !!((_this$PrintOptions3 = this.PrintOptions) !== null && _this$PrintOptions3 !== void 0 && _this$PrintOptions3.Remark),
|
|
1938
1986
|
printWithPrices: !!((_this$PrintOptions4 = this.PrintOptions) !== null && _this$PrintOptions4 !== void 0 && _this$PrintOptions4.Prices),
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1987
|
+
printWithArQrCode: !!((_this$PrintOptions5 = this.PrintOptions) !== null && _this$PrintOptions5 !== void 0 && _this$PrintOptions5.arQrCode),
|
|
1988
|
+
printWithAllPrices: !!((_this$PrintOptions6 = this.PrintOptions) !== null && _this$PrintOptions6 !== void 0 && _this$PrintOptions6.AllPrices),
|
|
1989
|
+
printWithOpvCodices: !!((_this$PrintOptions7 = this.PrintOptions) !== null && _this$PrintOptions7 !== void 0 && _this$PrintOptions7.OpvCodices),
|
|
1990
|
+
printWithModelName: !!((_this$PrintOptions8 = this.PrintOptions) !== null && _this$PrintOptions8 !== void 0 && _this$PrintOptions8.ModelName),
|
|
1991
|
+
printWithCollectionLogo: !!((_this$PrintOptions9 = this.PrintOptions) !== null && _this$PrintOptions9 !== void 0 && _this$PrintOptions9.CollectionLogo),
|
|
1992
|
+
printWithDivaLogo: !!((_this$PrintOptions10 = this.PrintOptions) !== null && _this$PrintOptions10 !== void 0 && _this$PrintOptions10.DivaLogo),
|
|
1993
|
+
printWithSignature: !!((_this$PrintOptions11 = this.PrintOptions) !== null && _this$PrintOptions11 !== void 0 && _this$PrintOptions11.Signature),
|
|
1994
|
+
printWithClientpersonData: !!((_this$PrintOptions12 = this.PrintOptions) !== null && _this$PrintOptions12 !== void 0 && _this$PrintOptions12.ClientpersonData),
|
|
1995
|
+
printWithSalespersonData: !!((_this$PrintOptions13 = this.PrintOptions) !== null && _this$PrintOptions13 !== void 0 && _this$PrintOptions13.SalespersonData),
|
|
1996
|
+
printWithPartlist: !!((_this$PrintOptions14 = this.PrintOptions) !== null && _this$PrintOptions14 !== void 0 && _this$PrintOptions14.Partlist),
|
|
1997
|
+
printWithDate: !!((_this$PrintOptions15 = this.PrintOptions) !== null && _this$PrintOptions15 !== void 0 && _this$PrintOptions15.PrintDate)
|
|
1948
1998
|
};
|
|
1949
1999
|
}
|
|
1950
2000
|
}, {
|
|
@@ -1964,13 +2014,13 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1964
2014
|
}
|
|
1965
2015
|
}, {
|
|
1966
2016
|
key: "generateEKTextOfBasket",
|
|
1967
|
-
value: function generateEKTextOfBasket(withoutPrices) {
|
|
2017
|
+
value: function generateEKTextOfBasket(withoutPrices, customDivaNr) {
|
|
1968
2018
|
return _generateEKTextOfBasket(this, withoutPrices);
|
|
1969
2019
|
}
|
|
1970
2020
|
}, {
|
|
1971
2021
|
key: "getEKText",
|
|
1972
|
-
value: function getEKText(withoutPrices) {
|
|
1973
|
-
return _generateEKTextOfBasket(this, withoutPrices).OrderSets[0].SetOrderText;
|
|
2022
|
+
value: function getEKText(withoutPrices, customDivaNr) {
|
|
2023
|
+
return _generateEKTextOfBasket(this, withoutPrices, customDivaNr).OrderSets[0].SetOrderText;
|
|
1974
2024
|
}
|
|
1975
2025
|
}, {
|
|
1976
2026
|
key: "getProductConfiguration",
|
|
@@ -1981,6 +2031,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1981
2031
|
DivaNr: this.DivaNr,
|
|
1982
2032
|
VariantID: variantId,
|
|
1983
2033
|
OrderSets: this.OrderSets.map(function (set) {
|
|
2034
|
+
var _set$Favorites$Varian, _set$Favorites;
|
|
1984
2035
|
return {
|
|
1985
2036
|
AccountGUID: set.AccountGUID,
|
|
1986
2037
|
CatalogCodex: set.CatalogCodex,
|
|
@@ -1992,7 +2043,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
1992
2043
|
SetPlanData: set.SetPlanData,
|
|
1993
2044
|
SupplierGUID: set.SupplierGUID,
|
|
1994
2045
|
Favorites: {
|
|
1995
|
-
VariantValues: set.Favorites.VariantValues
|
|
2046
|
+
VariantValues: (_set$Favorites$Varian = (_set$Favorites = set.Favorites) === null || _set$Favorites === void 0 ? void 0 : _set$Favorites.VariantValues) !== null && _set$Favorites$Varian !== void 0 ? _set$Favorites$Varian : undefined
|
|
1996
2047
|
},
|
|
1997
2048
|
HQRenderScript: set.HQRenderScript,
|
|
1998
2049
|
Diva3DProject: _this2.Diva3DProject,
|
|
@@ -2011,7 +2062,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
2011
2062
|
NoPrice: ol.NoPrice ? true : undefined,
|
|
2012
2063
|
RelatedToBasketID: ol.RelatedToBasketID,
|
|
2013
2064
|
ShelfPlandata: ol.ShelfPlandata,
|
|
2014
|
-
ArticleHash:
|
|
2065
|
+
ArticleHash: getHash(ol),
|
|
2015
2066
|
VariantBasketDatas: ol.getTinyVariantConfigurationDatas()
|
|
2016
2067
|
};
|
|
2017
2068
|
})
|
|
@@ -2057,6 +2108,7 @@ var BasketData = /*#__PURE__*/function () {
|
|
|
2057
2108
|
olVariant.OPV = variant.OPV;
|
|
2058
2109
|
}
|
|
2059
2110
|
});
|
|
2111
|
+
variantOrderline.ArticleHash = getHash(variantOrderline);
|
|
2060
2112
|
});
|
|
2061
2113
|
}
|
|
2062
2114
|
return productConfiguration;
|
|
@@ -2201,7 +2253,7 @@ function PriceObjectData(Price, FormatedPrice, CalcPrice, PriceType, Currency, P
|
|
|
2201
2253
|
});
|
|
2202
2254
|
|
|
2203
2255
|
var SAPOrderLineData = /*#__PURE__*/function () {
|
|
2204
|
-
function SAPOrderLineData(SetID, ArticleNr, ArticleNrPrefix, Name, PosNr, Price, Quantity, UseSAPArticleNumberInEKText) {
|
|
2256
|
+
function SAPOrderLineData(SetID, ArticleNr, ArticleNrPrefix, Name, PosNr, Price, Quantity, UseSAPArticleNumberInEKText, basketIds) {
|
|
2205
2257
|
_classCallCheck__default["default"](this, SAPOrderLineData);
|
|
2206
2258
|
_defineProperty__default["default"](this, "SetID", '');
|
|
2207
2259
|
_defineProperty__default["default"](this, "ArticleNr", void 0);
|
|
@@ -2214,6 +2266,7 @@ var SAPOrderLineData = /*#__PURE__*/function () {
|
|
|
2214
2266
|
_defineProperty__default["default"](this, "OrderText", void 0);
|
|
2215
2267
|
_defineProperty__default["default"](this, "Quantity", void 0);
|
|
2216
2268
|
_defineProperty__default["default"](this, "UseSAPArticleNumberInEKText", void 0);
|
|
2269
|
+
_defineProperty__default["default"](this, "basketIds", void 0);
|
|
2217
2270
|
this.SetID = SetID;
|
|
2218
2271
|
this.ArticleNr = ArticleNr;
|
|
2219
2272
|
this.ArticleNrPrefix = ArticleNrPrefix;
|
|
@@ -2222,6 +2275,7 @@ var SAPOrderLineData = /*#__PURE__*/function () {
|
|
|
2222
2275
|
this.Price = Price;
|
|
2223
2276
|
this.Quantity = Quantity;
|
|
2224
2277
|
this.UseSAPArticleNumberInEKText = UseSAPArticleNumberInEKText;
|
|
2278
|
+
this.basketIds = basketIds;
|
|
2225
2279
|
}
|
|
2226
2280
|
return _createClass__default["default"](SAPOrderLineData, [{
|
|
2227
2281
|
key: "addQuantity",
|