Zeiterfassung
Neue Features: * BP Stunden Aufbuchen/Mindern * Spezialbuchungen ohne Verechnungstechnische relevanz
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user