From 89a132dc4a510d5cd207088ee8ab20bb47226ff0 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 7 Dec 2025 18:22:30 +0100 Subject: [PATCH] Update `validateHandlingCost` to use 2 decimal precision for parsing numbers. --- .../edit/destination/mass/DestinationMassHandlingCost.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCost.vue b/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCost.vue index a1eb043..085817a 100644 --- a/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCost.vue +++ b/src/frontend/src/components/layout/edit/destination/mass/DestinationMassHandlingCost.vue @@ -151,7 +151,7 @@ export default { this.handlingCostActive = value; }, validateHandlingCost(event, type) { - const value = event.target.value == null ? null : parseNumberFromString(event.target.value, 0); + const value = event.target.value == null ? null : parseNumberFromString(event.target.value, 2); const validatedValue = value == null ? null : Math.max(0, value); const stringified = validatedValue === null ? '' : validatedValue.toFixed();