thm-p3-configurator 0.0.271 → 0.0.272

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.
@@ -241,7 +241,7 @@ const ProductCartTable = () => {
241
241
  return;
242
242
  }
243
243
  const parsed = Number.parseFloat(sanitized);
244
- const clamped = parsed === null || Number.isNaN(parsed) ? null : Math.min(100, Math.max(0, parsed));
244
+ const clamped = parsed === null || Number.isNaN(parsed) ? null : Math.max(0, parsed);
245
245
  dispatch({
246
246
  type: _OrderSessionContext.orderSessionActions.SET_MONTAGE_RATE,
247
247
  payload: {
@@ -276,7 +276,7 @@ const ProductCartTable = () => {
276
276
  discountAmount,
277
277
  discountPercentage,
278
278
  formula,
279
- montageRate: montageRate !== null && montageRate !== void 0 ? montageRate : undefined
279
+ montageRate: montageRate !== null && montageRate !== undefined ? montageRate / 100 : undefined
280
280
  });
281
281
  const montageHours = Number(totals === null || totals === void 0 ? void 0 : totals.montageTime) || 0;
282
282
  const montageTotalExcl = Number((totals === null || totals === void 0 ? void 0 : totals.totalMontageExclVat) || 0);
@@ -304,7 +304,7 @@ const ProductCartTable = () => {
304
304
  dispatch({
305
305
  type: _OrderSessionContext.orderSessionActions.SET_MONTAGE_RATE,
306
306
  payload: {
307
- montageRate: numericRate
307
+ montageRate: numericRate * 100
308
308
  }
309
309
  });
310
310
  }
@@ -554,10 +554,9 @@ const ProductCartTable = () => {
554
554
  label: "Montage tarief",
555
555
  className: "mb-0",
556
556
  name: "montage-rate",
557
- placeholder: "0.0 - 100.0",
557
+ placeholder: "0.0",
558
558
  value: montageRate === null || montageRate === undefined ? '' : montageRate.toString(),
559
559
  min: 0,
560
- max: 100,
561
560
  step: "0.1",
562
561
  isRequired: false,
563
562
  isDisabled: isMontageTariffFixed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thm-p3-configurator",
3
- "version": "0.0.271",
3
+ "version": "0.0.272",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "author": "EnoRm.",