diff --git a/Layout/default/TimerecordingBilling/Detail.php b/Layout/default/TimerecordingBilling/Detail.php index 9d85df9ca..8c493fa41 100644 --- a/Layout/default/TimerecordingBilling/Detail.php +++ b/Layout/default/TimerecordingBilling/Detail.php @@ -22,7 +22,7 @@
-
+
@@ -135,6 +138,9 @@ }); $('body').on('click', '#month-complete', function () { if (confirm('Monat ' + $('#month').data('month') + ' wirklich abschließen?')) { + $('#datatable_wrapper').hide(); + $('#page-header').hide(); + $('.spinner-big').show(); $.post(" 'completemonth']) ?>", { month: $.trim($('#month').data('month')), ajax: 1 diff --git a/Layout/default/TimerecordingBilling/DetailClosed.php b/Layout/default/TimerecordingBilling/DetailClosed.php index 7b4ec113b..66d95337b 100644 --- a/Layout/default/TimerecordingBilling/DetailClosed.php +++ b/Layout/default/TimerecordingBilling/DetailClosed.php @@ -52,7 +52,7 @@
-
+
@@ -157,6 +165,12 @@ + + + + '); + $('#overtimes').html(''); $('#submit-button').data('type', 'difference'); + $('#plushours25_div').show(); } if (button.hasClass('change-overtime')) { $('#overtimeModal-title').text('Überstunden Transfer'); $('#overtimes').html(''); $('#submit-button').data('type', 'overtime'); $('#overtimeModal').data('id', button.data('id')); + $('#plushours25_div').hide(); } $('.change-overtime-value').val(''); }); + + $('body').on('click', '#month-abort', function () { + if (confirm('Monatsabschluss ' + $('#month').data('month') + ' wirklich rückgängig machen?')) { + $('#datatable_wrapper').hide(); + $('#page-header').hide(); + $('.spinner-big').show(); + $.post(" 'abortmonth']) ?>", { + month: $.trim($('#month').data('month')), + ajax: 1 + }).done(function (data) { + window.location.href = " $month]) ?>"; + }); + } + + }); + $('body').on('change', '.change-overtime-value', function () { //$('#overtime-hours').data('hours') to float var difference = 0; @@ -278,12 +312,14 @@ }); $('body').on('click', '#submit-button', function () { var id = $('#overtimeModal').data('id'); + var plushours25 = $('#plushours25').val(); var overtime50 = $('#overtime50').val(); var overtime100 = $('#overtime100').val(); var overtimebpa = $('#overtimebpa').val(); $.post(" 'saveovertime']) ?>", { id: id, type: $(this).data('type'), + plushours25: plushours25, overtime50: overtime50, overtime100: overtime100, overtimebpa: overtimebpa, diff --git a/Layout/default/TimerecordingEmployee/Form.php b/Layout/default/TimerecordingEmployee/Form.php index bc48cb497..26db7b565 100644 --- a/Layout/default/TimerecordingEmployee/Form.php +++ b/Layout/default/TimerecordingEmployee/Form.php @@ -143,25 +143,25 @@ $daysSelect .= ""; -
+ -
+ -
+
Überstunden 50 - var hidesearch = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; + var hidesearch = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12]; superexpertEnabled()): ?> - hidesearch = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; + hidesearch = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,12,13]; $(document).ready(function () { - // $('.buttons-excel').closest('div').append('
'); + superexpertEnabled()): ?> + $('.buttons-excel').closest('div').prepend('
'); + $('.buttons-excel').closest('div').append('
'); $('.buttons-excel').closest('div').append('
'); @@ -221,24 +237,42 @@ } }); - $('#overtimeModal').on('shown.bs.modal', function (event) { + $('#overtimeModal').on('show.bs.modal', function (event) { var button = $(event.relatedTarget); if (button.hasClass('change-difference')) { $('#overtimeModal-title').text('Mehrstunden Transfer'); $('#overtimeModal').data('id', button.data('id')); - $('#overtimes').html('
Mehrstunden: ' + button.data('hours') + ' (6,5)Mehrstunden: ' + button.data('hours') + 'Überstunden: ' + button.data('hours') + '