thm-p3-configurator 0.0.421 → 0.0.423
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.
|
@@ -544,7 +544,7 @@ const ProductCartTable = () => {
|
|
|
544
544
|
const resolvedIncl = salesPriceIncl || (salesPrice ? Number(salesPrice) * _cartTable.VAT_RATE : 0);
|
|
545
545
|
return resolvedIncl > 0 ? total + Number(resolvedIncl) : total;
|
|
546
546
|
}, 0) : 0;
|
|
547
|
-
const montageInclVat = !isToggled
|
|
547
|
+
const montageInclVat = !isToggled ? APP_CONFIG.internal ? Number((totals === null || totals === void 0 ? void 0 : totals.montagePricePlusMarketCorrectionInclVat) || 0) : Number((totals === null || totals === void 0 ? void 0 : totals.totalMontageExclVat) || 0) * _cartTable.VAT_RATE : 0;
|
|
548
548
|
const accessoryInclVat = !isToggled ? accessoireProducts.reduce((total, product) => {
|
|
549
549
|
const {
|
|
550
550
|
salesPriceIncl,
|
|
@@ -621,13 +621,11 @@ const ProductCartTable = () => {
|
|
|
621
621
|
var _p$priceInfo14;
|
|
622
622
|
return t + Number((p === null || p === void 0 || (_p$priceInfo14 = p.priceInfo) === null || _p$priceInfo14 === void 0 ? void 0 : _p$priceInfo14.salesPrice) || 0);
|
|
623
623
|
}, 0) : 0;
|
|
624
|
-
const apiMontageSubtotalIncl = (totals === null || totals === void 0 ? void 0 : totals.subtotalMontageInclVat) != null ? Number(totals.subtotalMontageInclVat) : null;
|
|
625
|
-
const mainSubtotalIncl = !isToggled && apiMontageSubtotalIncl !== null && Number.isFinite(apiMontageSubtotalIncl) ? apiMontageSubtotalIncl : mainInclVat + montageInclVat;
|
|
626
624
|
return {
|
|
627
625
|
main: {
|
|
628
626
|
purchase: mainPurchase,
|
|
629
627
|
margin: mainMargin,
|
|
630
|
-
inclVat:
|
|
628
|
+
inclVat: mainInclVat + montageInclVat,
|
|
631
629
|
exclVat: mainExclVat + montageExclVat + marketCorrectionExclVat,
|
|
632
630
|
tmg: {
|
|
633
631
|
catalog: tmgCatalog,
|