thm-p3-configurator 0.0.103 → 0.0.105
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.
|
@@ -107,7 +107,6 @@ const customerDetailsFormSchema = (0, _yup.object)({
|
|
|
107
107
|
singleOrderOwnershipType: (0, _yup.string)().nullable(),
|
|
108
108
|
firstName: (0, _yup.string)().nullable(),
|
|
109
109
|
infix: (0, _yup.string)().nullable(),
|
|
110
|
-
lastName: (0, _yup.string)().nullable(),
|
|
111
110
|
email: (0, _yup.string)().nullable(),
|
|
112
111
|
phoneNumber: (0, _yup.string)().nullable(),
|
|
113
112
|
zipCode: (0, _yup.string)().nullable(),
|
|
@@ -226,7 +225,7 @@ const InternalCustomerDetailsForm = (_ref, ref) => {
|
|
|
226
225
|
})), /*#__PURE__*/_react.default.createElement(_RadioButtons.default, {
|
|
227
226
|
name: "singleOrderOwnershipType",
|
|
228
227
|
label: "Type:",
|
|
229
|
-
initialValue: vehicle === null || vehicle === void 0 ? void 0 : vehicle.singleOrderOwnershipType,
|
|
228
|
+
initialValue: (vehicle === null || vehicle === void 0 ? void 0 : vehicle.singleOrderOwnershipType) || _constants__.VEHICLE_SINGLE_ORDER_OWNERSHIP_TYPE.Empty,
|
|
230
229
|
onChange: val => {
|
|
231
230
|
dispatch({
|
|
232
231
|
type: _OrderSessionContext.orderSessionActions.SET_VEHICLE_SINGLE_ORDER_OWNERSHIP_TYPE,
|
|
@@ -155,6 +155,7 @@ const VEHICLE_OWNERSHIP_TYPE = exports.VEHICLE_OWNERSHIP_TYPE = {
|
|
|
155
155
|
Leasemaatschappij: 'Leasemaatschappij'
|
|
156
156
|
};
|
|
157
157
|
const VEHICLE_SINGLE_ORDER_OWNERSHIP_TYPE = exports.VEHICLE_SINGLE_ORDER_OWNERSHIP_TYPE = {
|
|
158
|
+
Empty: 'Niet van toepassing',
|
|
158
159
|
Particulier: 'Particulier',
|
|
159
160
|
Zakelijk: 'Zakelijk'
|
|
160
161
|
};
|
|
@@ -147,11 +147,9 @@ const ProductCartSide = () => {
|
|
|
147
147
|
const product = [...mainProducts, ...accessoireProducts].find(p => p.articleNumber === cartItem.articleNumber);
|
|
148
148
|
if (isToggled) {
|
|
149
149
|
var _product$locationPric;
|
|
150
|
-
|
|
151
|
-
return (product === null || product === void 0 || (_product$locationPric = product.locationPrices) === null || _product$locationPric === void 0 ? void 0 : _product$locationPric.priceExclVat) || 0;
|
|
150
|
+
return ((product === null || product === void 0 || (_product$locationPric = product.locationPrices) === null || _product$locationPric === void 0 ? void 0 : _product$locationPric.priceExclVat) || 0) * (cartItem.quantity || 1);
|
|
152
151
|
}
|
|
153
|
-
|
|
154
|
-
return (product === null || product === void 0 || (_product$consumerPric = product.consumerPrices) === null || _product$consumerPric === void 0 ? void 0 : _product$consumerPric.priceInclVat) || cartItem.consumerTotal || 0;
|
|
152
|
+
return cartItem.consumerTotal || ((product === null || product === void 0 || (_product$consumerPric = product.consumerPrices) === null || _product$consumerPric === void 0 ? void 0 : _product$consumerPric.priceInclVat) || 0) * (cartItem.quantity || 1);
|
|
155
153
|
};
|
|
156
154
|
|
|
157
155
|
// Calculate subtotal for products
|