mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-19 21:10:49 +01:00
Correzione #828
This commit is contained in:
parent
5e95914816
commit
a2ab82b09f
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Carbon\Carbon;
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
/*
|
||||
@ -239,20 +241,12 @@ echo '
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="text-center" style="font-size:8pt;">
|
||||
<th class="text-center" style="font-size:8pt;width:30%">
|
||||
<b>'.tr('Tecnico').'</b>
|
||||
</th>
|
||||
|
||||
<th class="text-center" style="font-size:8pt;width:14%">
|
||||
<b>'.tr('Data').'</b>
|
||||
</th>
|
||||
|
||||
<th class="text-center" style="font-size:8pt;width:7%">
|
||||
<b>'.tr('Dalle').'</b>
|
||||
</th>
|
||||
|
||||
<th class="text-center" style="font-size:8pt;width:7%">
|
||||
<b>'.tr('Alle').'</b>
|
||||
<th class="text-center" colspan="3" style="font-size:8pt;width:35%">
|
||||
<b>'.tr('Orario').'</b>
|
||||
</th>
|
||||
|
||||
<td class="text-center" style="font-size:6pt;width:35%">
|
||||
@ -264,7 +258,6 @@ echo '
|
||||
<tbody>';
|
||||
|
||||
// Sessioni di lavoro dei tecnici
|
||||
|
||||
$sessioni = $documento->sessioni;
|
||||
foreach ($sessioni as $i => $sessione) {
|
||||
echo '
|
||||
@ -276,22 +269,18 @@ foreach ($sessioni as $i => $sessione) {
|
||||
'.$sessione->anagrafica->ragione_sociale.'
|
||||
</td>';
|
||||
|
||||
// Data
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.Translator::dateToLocale($sessione['orario_inizio']).'
|
||||
</td>';
|
||||
$inizio = new Carbon($sessione['orario_inizio']);
|
||||
$fine = new Carbon($sessione['orario_fine']);
|
||||
if ($inizio->isSameDay($fine)) {
|
||||
$orario = timestampFormat($inizio).' - '.timeFormat($fine);
|
||||
} else {
|
||||
$orario = timestampFormat($inizio).' - '.timestampFormat($fine);
|
||||
}
|
||||
|
||||
// Ora inizio
|
||||
// Orario
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.Translator::timeToLocale($sessione['orario_inizio']).'
|
||||
</td>';
|
||||
|
||||
// Ora fine
|
||||
echo '
|
||||
<td class="text-center">
|
||||
'.Translator::timeToLocale($sessione['orario_fine']).'
|
||||
<td class="text-center" colspan="3">
|
||||
'.$orario.'
|
||||
</td>';
|
||||
|
||||
// Spazio aggiuntivo
|
||||
|
Loading…
x
Reference in New Issue
Block a user