Zeiterfassung

Neue Features:
* BP Stunden Aufbuchen/Mindern
* Spezialbuchungen ohne Verechnungstechnische relevanz
This commit is contained in:
Daniel Spitzer
2024-12-29 20:24:36 +01:00
parent 42703dd303
commit 085d8facdc
12 changed files with 151 additions and 27 deletions

View File

@@ -308,6 +308,10 @@ $(document).ready(function () {
$(this).val('');
});
$('#days-div').show();
$('#days-div').find('label').text('Anzahl Tage');
$('#days-div').find('input').attr("step", "1");
$('#days-div').find('input').val("");
$('#days').prop("required", true);
} else if (parseInt($(this).find(':selected').data('hourday')) === 7) {
@@ -326,6 +330,24 @@ $(document).ready(function () {
$('#businesstrip_info').show();
$('.car-div-car').show();
} else if (parseInt($(this).find(':selected').data('hourday')) === 8) {
$("#endtime-div").hide();
$("#endtime-div").find('input').each(function () {
$(this).prop("required", false);
$(this).prop("disabled", true);
});
$("#enddate-div").hide();
$("#enddate-div").find('input').each(function () {
$(this).prop("required", false);
$(this).prop("min", '');
$(this).val('');
});
$('#days-div').show();
$('#days-div').find('label').text('Anzahl Stunden');
$('#days-div').find('input').attr("step", "0.01");
$('#days').prop("required", true);
$('#days-div').find('input').val("");
}
if (parseInt($(this).find(':selected').data('comment')) === 1) {
$('#comment').prop("required", true);