thm-p3-configurator 0.0.124 → 0.0.125
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,6 +124,7 @@ function _toPrimitive(t, r) {
|
|
|
124
124
|
return ("string" === r ? String : Number)(t);
|
|
125
125
|
}
|
|
126
126
|
const ProductCartTable = () => {
|
|
127
|
+
var _marketCorrection$con, _marketCorrection$con2;
|
|
127
128
|
const formula = (0, _FormulaContext.useFormula)();
|
|
128
129
|
const [isToggled, setIsToggled] = (0, _react.useState)(false);
|
|
129
130
|
const [{
|
|
@@ -333,14 +334,14 @@ const ProductCartTable = () => {
|
|
|
333
334
|
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.totalMontageExclVat),
|
|
334
335
|
className: 'cart__table-price text-end'
|
|
335
336
|
}] : [{}, {}, {
|
|
336
|
-
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.
|
|
337
|
+
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.montagePricePlusMarketCorrectionInclVat),
|
|
337
338
|
className: 'cart__table-price text-end'
|
|
338
339
|
}])]
|
|
339
340
|
}), isToggled && marketCorrection && /*#__PURE__*/_react.default.createElement(_ProductTableStaticRow.default, {
|
|
340
341
|
productTitle: 'Marktcorrectie',
|
|
341
342
|
productImage: _montagePlaceholder.default,
|
|
342
343
|
extraCells: [{}, {}, {}, ...(isToggled ? [{
|
|
343
|
-
text: (marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.locationTotal) > 0 ? "".concat((0, _helpers__.formatPrice)(marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.locationTotal), " (").concat(Math.round(((marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.consumerTotal)
|
|
344
|
+
text: (marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.locationTotal) > 0 ? "".concat((0, _helpers__.formatPrice)(((_marketCorrection$con = marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.consumerTotal) !== null && _marketCorrection$con !== void 0 ? _marketCorrection$con : 0) / 1.21 - marketCorrection.locationTotal), " (").concat(Math.round((((_marketCorrection$con2 = marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.consumerTotal) !== null && _marketCorrection$con2 !== void 0 ? _marketCorrection$con2 : 0) / 1.21 - marketCorrection.locationTotal) / marketCorrection.locationTotal * 10000) / 100, "%)") : 'N.v.t.',
|
|
344
345
|
className: 'cart__table-price text-end'
|
|
345
346
|
}, {
|
|
346
347
|
text: (marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.locationTotal) > 0 ? (0, _helpers__.formatPrice)(marketCorrection === null || marketCorrection === void 0 ? void 0 : marketCorrection.locationTotal) : 'N.v.t.',
|
|
@@ -375,7 +376,7 @@ const ProductCartTable = () => {
|
|
|
375
376
|
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.subtotalMontageExclVat),
|
|
376
377
|
className: 'fw-bold text-end pb-2'
|
|
377
378
|
}] : [{
|
|
378
|
-
text: (0, _helpers__.formatPrice)(
|
|
379
|
+
text: (0, _helpers__.formatPrice)(totals === null || totals === void 0 ? void 0 : totals.subtotalMontageInclVat),
|
|
379
380
|
className: 'fw-bold text-end pb-2'
|
|
380
381
|
}])]
|
|
381
382
|
})), accessoireProducts.length > 0 && /*#__PURE__*/_react.default.createElement(_ProductTableSection.default, {
|