thm-p3-configurator 0.0.102 → 0.0.104
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
|
};
|
|
@@ -258,17 +258,6 @@ const InternalSingleOrderPage = () => {
|
|
|
258
258
|
const isValid = await ((_customerFormRef$curr = customerFormRef.current) === null || _customerFormRef$curr === void 0 ? void 0 : _customerFormRef$curr.validateForm());
|
|
259
259
|
if (isValid) {
|
|
260
260
|
const preferredDateTime = appointment !== null && appointment !== void 0 && appointment.date && appointment !== null && appointment !== void 0 && appointment.time ? (0, _helpers__.parseDateAndTimeToTimestamp)(appointment === null || appointment === void 0 ? void 0 : appointment.date, appointment === null || appointment === void 0 ? void 0 : appointment.time) : null;
|
|
261
|
-
console.log({
|
|
262
|
-
licensePlate: filters.licensePlate,
|
|
263
|
-
model: filters.model,
|
|
264
|
-
cart: singleOrderCart,
|
|
265
|
-
customer,
|
|
266
|
-
vehicle,
|
|
267
|
-
formula,
|
|
268
|
-
branchId: selectedBranch,
|
|
269
|
-
preferredDateTime,
|
|
270
|
-
internalNote: internalNote === null || internalNote === void 0 ? void 0 : internalNote.internalNote
|
|
271
|
-
});
|
|
272
261
|
vehicle.ownershipType = vehicle.singleOrderOwnershipType;
|
|
273
262
|
delete vehicle.singleOrderOwnershipType;
|
|
274
263
|
createSingleOrder({
|