|
|
@@ -207,6 +207,9 @@ class IssueController extends Controller
|
|
207
|
207
|
// 'persona_riferimento' => $request->persona_riferimento,
|
|
208
|
208
|
// 'cliente' => $cliente
|
|
209
|
209
|
// ]);
|
|
|
210
|
+ $hours = floor($durata / 60);
|
|
|
211
|
+ $minutes = ($durata % 60);
|
|
|
212
|
+
|
|
210
|
213
|
$pdf = PDF::loadView('issue.pdf', [
|
|
211
|
214
|
'issue' => $issue,
|
|
212
|
215
|
'dataIntervento' => $dataIntervento,
|
|
|
@@ -221,7 +224,8 @@ class IssueController extends Controller
|
|
221
|
224
|
'persona_riferimento' => $request->persona_riferimento,
|
|
222
|
225
|
'cliente' => $cliente,
|
|
223
|
226
|
'user' => $user,
|
|
224
|
|
- 'sedeCliente' => $request->sedeCliente
|
|
|
227
|
+ 'sedeCliente' => $request->sedeCliente,
|
|
|
228
|
+ 'durata' => $hours.'h '.$minutes.'min'
|
|
225
|
229
|
]);
|
|
226
|
230
|
|
|
227
|
231
|
$folder_name = Storage::disk('temp')->getDriver()->getAdapter()->getPathPrefix();
|
|
|
@@ -328,7 +332,17 @@ class IssueController extends Controller
|
|
328
|
332
|
'hours' => $durata.'m',
|
|
329
|
333
|
'comments' => $request->note,
|
|
330
|
334
|
'activity_id' => $activity_id,
|
|
331
|
|
- 'user_id' => $key
|
|
|
335
|
+ 'user_id' => $key,
|
|
|
336
|
+ 'custom_fields' => [
|
|
|
337
|
+ [
|
|
|
338
|
+ 'id' => 71,
|
|
|
339
|
+ 'value' => $inizio->format('H:i')
|
|
|
340
|
+ ],
|
|
|
341
|
+ [
|
|
|
342
|
+ 'id' => 72,
|
|
|
343
|
+ 'value' => $fine->format('H:i')
|
|
|
344
|
+ ]
|
|
|
345
|
+ ]
|
|
332
|
346
|
]
|
|
333
|
347
|
]);
|
|
334
|
348
|
|