Zeiterfassung Update

* Script für Email Alarmierung §57a
 * Automatische auswahl beim Buchen von Dienstreisen auf das zugewiesene Fahrzeug
This commit is contained in:
Spitzer Daniel
2024-04-28 12:23:36 +02:00
parent 5a6224df9f
commit 258067ef4d
4 changed files with 77 additions and 5 deletions
+6 -1
View File
@@ -419,6 +419,11 @@ $(document).ready(function () {
$('#homeoffice').prop('checked', false);
$('#homeoffice-div').hide();
$('.car-div-car').show();
$.each($('#timerecordingCar_id option'), function (index, value) {
if ($(this).data('user') == $('#id').data('userid')) {
$('#timerecordingCar_id').val($(this).val()).change();
}
});
} else {
$('#businesstrip_info').hide();
$('#businesstrip_info').val('');
@@ -489,7 +494,7 @@ $(document).ready(function () {
});
$("body").on("change", "#mileage_start", function () {
$('#mileage_end').prop("min", $('#mileage_start').val());
$('#mileage_end').prop("min", $('#mileage_start').val());
});
$("body").on("click", ".delete-item", function () {