diff --git a/timesheet/js/app.ts b/timesheet/js/app.ts
index a315b77b5b..c6a198c226 100644
--- a/timesheet/js/app.ts
+++ b/timesheet/js/app.ts
@@ -192,6 +192,21 @@ class TimesheetApp extends EgwApp
}
}
+ /**
+ * If editing a timesheet and no quantity is set, update the placeholder text when duration changes
+ *
+ * This is for display only
+ */
+ update_quantity(event, widget)
+ {
+ const quantity = this.et2.getWidgetById("ts_quantity");
+ if(quantity)
+ {
+ // Duration is in minutes, round to hours with 1 decimal
+ quantity.placeholder = Math.round(parseInt(widget.value) / 6) / 10;
+ }
+ }
+
/**
* Get title in order to set it as document title
* @returns {string}
diff --git a/timesheet/templates/default/edit.xet b/timesheet/templates/default/edit.xet
index 7f8a63cc67..dc311a73d9 100644
--- a/timesheet/templates/default/edit.xet
+++ b/timesheet/templates/default/edit.xet
@@ -137,12 +137,13 @@
+
+
+
+
+
+