Zeiterfassung

* Fix für Workaround Urlaubsminderung
This commit is contained in:
Daniel Spitzer
2024-07-05 09:03:00 +02:00
parent 3e3e850e7c
commit 3d10967292

View File

@@ -224,7 +224,9 @@ class TimerecordingBillingController extends mfBaseController
$file = fopen("php://output", 'w');
header('Content-Type: text/csv; charset=utf-8');
header('Content-Disposition: attachment; filename=' . $filename);
$monthbmd = date("n", strtotime("01." . $month));
$monthunix=(strtotime("01." .$month));
$monthbmd = date("n", $monthunix);
$monthend = date("d.m.Y", strtotime("last day of this month",$monthunix));
$companybmd = "1";
if ($nlz == 0) {
$headerarray = ["Monat", "Firma", "Mitarbeiter", "Lohnart", "Menge", "Satz", "Betrag", "Kostenstelle", "NLZ-Kennzeichen", "NLZ Von-Datum", "NLZ Bis-Datum"];
@@ -339,10 +341,9 @@ class TimerecordingBillingController extends mfBaseController
if ($timerecordingBillingEmployee->holidays>0) {
//last day of month
$month= strtotime("01." . $month);
$monthend = date("d.m.Y", strtotime("last day of this month", $month));
$bodyarray = [$companybmd, $employee_number, 1, "1", "", "4", '30.06.2024', '30.06.2024', $timerecordingBillingEmployee->holidays, '0'];
$bodyarray = [$companybmd, $employee_number, 1, "1", "", "4", $monthend, $monthend, $timerecordingBillingEmployee->holidays, '0'];
fputcsv($file, $bodyarray, ";");
}