thm-p3-configurator 0.0.241 → 0.0.242
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.
|
@@ -124,7 +124,6 @@ function _toPrimitive(t, r) {
|
|
|
124
124
|
return ("string" === r ? String : Number)(t);
|
|
125
125
|
}
|
|
126
126
|
const ProductCartTable = () => {
|
|
127
|
-
var _marketCorrection$con;
|
|
128
127
|
const formula = (0, _FormulaContext.useFormula)();
|
|
129
128
|
const isTmg = (0, _useIsTmg.useIsTmg)();
|
|
130
129
|
const [isToggled, setIsToggled] = (0, _react.useState)(false);
|
|
@@ -375,7 +374,7 @@ const ProductCartTable = () => {
|
|
|
375
374
|
text: 'N.v.t.',
|
|
376
375
|
className: 'cart__table-price text-end'
|
|
377
376
|
}, {
|
|
378
|
-
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.
|
|
377
|
+
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.montagePriceInclVat),
|
|
379
378
|
className: 'cart__table-price text-end'
|
|
380
379
|
}] : [{
|
|
381
380
|
text: 'N.v.t.',
|
|
@@ -390,26 +389,26 @@ const ProductCartTable = () => {
|
|
|
390
389
|
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.montagePricePlusMarketCorrectionInclVat),
|
|
391
390
|
className: 'cart__table-price text-end'
|
|
392
391
|
}])]
|
|
393
|
-
}), isToggled &&
|
|
392
|
+
}), console.log('totals', totals), isToggled && ((totals === null || totals === void 0 ? void 0 : totals.totalMarketCorrectionInclVat) > 0 || (totals === null || totals === void 0 ? void 0 : totals.totalMarketCorrectionExclVat) > 0) && /*#__PURE__*/_react.default.createElement(_ProductTableStaticRow.default, {
|
|
394
393
|
productTitle: 'Marktcorrectie',
|
|
395
394
|
productImage: _montagePlaceholder.default,
|
|
396
395
|
extraCells: [{}, {}, {}, ...(isToggled ? isTmg ? [{}, {
|
|
397
396
|
text: 'N.v.t.',
|
|
398
397
|
className: 'cart__table-price text-end'
|
|
399
398
|
}, {
|
|
400
|
-
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.
|
|
399
|
+
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalMarketCorrectionInclVat),
|
|
401
400
|
className: 'cart__table-price text-end'
|
|
402
401
|
}] : [{
|
|
403
|
-
text: (
|
|
402
|
+
text: (totals === null || totals === void 0 ? void 0 : totals.totalMarketCorrectionExclVat) > 0 ? totals === null || totals === void 0 ? void 0 : totals.totalMarketCorrectionExclVat : 'N.v.t.',
|
|
404
403
|
className: 'cart__table-price text-end'
|
|
405
404
|
}, {
|
|
406
|
-
text:
|
|
405
|
+
text: totals === null || totals === void 0 ? void 0 : totals.totalMarketCorrectionInclVat,
|
|
407
406
|
className: 'cart__table-price text-end'
|
|
408
407
|
}, {
|
|
409
|
-
text:
|
|
408
|
+
text: totals === null || totals === void 0 ? void 0 : totals.totalMarketCorrectionInclVat,
|
|
410
409
|
className: 'cart__table-price text-end'
|
|
411
410
|
}] : [{}, {}, {
|
|
412
|
-
text:
|
|
411
|
+
text: 'test',
|
|
413
412
|
className: 'cart__table-price text-end'
|
|
414
413
|
}])]
|
|
415
414
|
}), /*#__PURE__*/_react.default.createElement(_ProductTableSectionTotal.default, {
|