From bcf211c93f1ffe08ca93e30a72db2d056cbcc592 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 7 Jun 2023 09:10:20 -0600 Subject: [PATCH] Timesheet: Fix quantity update to work with comma decimal separator --- timesheet/js/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timesheet/js/app.ts b/timesheet/js/app.ts index de51a75acf..2d4dbbb5ec 100644 --- a/timesheet/js/app.ts +++ b/timesheet/js/app.ts @@ -216,7 +216,7 @@ class TimesheetApp extends EgwApp // Clear actual value to update if it was nearly the same const old_val = parseInt(widget._oldValue) / 60; - if(Math.abs(parseFloat(quantity.value) - old_val) < 0.01) + if(Math.abs(quantity.valueAsNumber - old_val) < 0.01) { quantity.value = ""; }