karat timesheet sync fix

This commit is contained in:
StudioTem committed 2023-04-13 10:34:13 +02:00
1 parent ebffbd29c3
commit c3bf06a9b0
2 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -68,9 +68,11 @@ class Api
public static function setTimesheet($timesheet)
{
echo 'Setting timesheet for project ' . $timesheet->subtask->mastertask->project->code . PHP_EOL;
$body = [
'command' => 'TM_SET_vykaz',
'zakazka' => $timesheet->subtask->project->code,
'zakazka' => $timesheet->subtask->mastertask->project->code,
'zdroj' => $timesheet->user->code,
'hodin' => $timesheet->time,
'datum' => $timesheet->created_at->format('Y-m-d'),