Commit dedcb657 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Merge remote-tracking branch 'origin/b20' into b20

parents 03436c85 c034d98a
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -11,6 +11,17 @@



# OSE 20.1 (à venir)

## Nouveautés

* Les jauges des plafonds affichent maintenant tout le temps les heures restantes

## Corrections de bugs

* Les données suplémentaires des indicateurs s'affichent de nouveau correctement



# OSE 20 (fin février 2023)

@@ -149,7 +160,7 @@ A la **ligne 206** Ajouter le titre de colonne TAG dans le tableau $head :

# OSE 19.1 (21/07/2022)

## nouveautés
## Nouveautés

* Formule de calcul de Picardie
* Nouvel état de sortie pour les écarts des heures complémentaires, maintenant personnalisable (#45807)
+2 −0
Original line number Diff line number Diff line
@@ -373,6 +373,8 @@ CREATE OR REPLACE PACKAGE BODY FORMULE_UVSQ AS
        WHEN c = 'AQ' AND v >= 1 THEN
          IF cell('AO17') = 0 THEN
            RETURN (cell('AN',l) - cell('AP',l)) / cell('AE',l);
          ELSE
            RETURN 0;
          END IF;


+0 −3
Original line number Diff line number Diff line
@@ -193,7 +193,4 @@ SELECT
      ORDER BY
               annee_id,
               type_intervenant_id,
               statut_id,
               structure_id,
               periode_id,
               intervenant_nom
 No newline at end of file
+19 −20
Original line number Diff line number Diff line
@@ -43,15 +43,26 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
            function printValue($value)
            {
                if (is_array($value)) {
                    echo '<ul>';
                    echo '<td><ul>';
                    foreach ($value as $val) {
                        echo '<li>' . $val . '</li>';
                    }
                    echo '</ul>';
                    echo '</ul></td>';
                } elseif ($value) {
                    $dt = DateTime::createFromFormat('Y-m-d H:i:s', $value);
                    if ($dt && $dt->format('Y-m-d H:i:s') === $value) {
                        // C'est une date
                        $dtOrder = $dt->format(\Application\Constants::DATE_SORT);
                        echo '<td data-order="' . $dtOrder . '">';
                        echo $dt->format(\Application\Constants::DATE_FORMAT);
                        echo '</td>';
                    } else {
                        echo '<td>';
                        echo $value;
                        echo '</td>';
                    }
                } else {
                    echo '&nbsp;';
                    echo '<td>&nbsp;</td>';
                }
            }

@@ -81,7 +92,7 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
                                                      class="indic-intervenant"/></th>
                            <?php endif; ?>
                            <td style="text-align: center"><?= $r['prioritaire'] ? '<i class="fas fa-star"></i>' : '' ?></td>
                            <td><?php printValue($r['structure-libelle']); ?></td>
                            <?php printValue($r['structure-libelle']); ?>
                            <td>
                                <a href="<?= $this->url($indicateur->getRoute(), ['intervenant' => $intervenantId]) ?>">
                                    <?php
@@ -95,21 +106,9 @@ echo $this->messenger()->addMessagesFromFlashMessenger(); // pour les envois de
                            </td>

                            <?php
                            foreach ($supCols as $supCol):
                                if (!is_array($r[$supCol])) {
                                    $dt = DateTime::createFromFormat('Y-m-d H:i:s', $r[$supCol]);
                                    if ($dt && $dt->format('Y-m-d H:i:s') === $r[$supCol]) {
                                        $dtOrder = $dt->format(\Application\Constants::DATE_SORT); ?>
                                        <td data-order=<?php echo $dtOrder ?>><?php printValue($dt->format(\Application\Constants::DATE_FORMAT)); ?></td>

                                    <?php }
                                } else {
                                    ?>
                                    <td><?php printValue($r[$supCol]); ?></td>

                                <?php }
                                ?>
                            <?php endforeach; ?>
                            foreach ($supCols as $supCol) {
                                printValue($r[$supCol]);
                            } ?>
                        </tr>
                    <?php endforeach; ?>
                    </tbody>
+11 −7
Original line number Diff line number Diff line
@@ -149,16 +149,20 @@ class PlafondsViewHelper extends AbstractHtmlElement
        }

        if (!$text) {
            if ($progression > 49) {
            $text = floatToString($plafond->getHeures()) . 'h, '
                . floatToString($max - $plafond->getHeures()) . ' dispo.';
            } elseif ($progression > 10) {
                $text = floatToString($plafond->getHeures()) . 'h';
            }
        }

        $html = '';

        if ($progression > 49) {
            $text1 = $text;
            $text2 = '';
        } else {
            $text1 = '';
            $text2 = '&nbsp;' . $text;
        }

        $html .= $t('div', ['class' => 'col-md-4'])->html(
            $t('div', [
                'class' => 'progress',
@@ -170,7 +174,7 @@ class PlafondsViewHelper extends AbstractHtmlElement
                    'aria-valuemin' => 0,
                    'aria-valuemax' => 100,
                    'style'         => 'width:' . $progression . '%',
                ])->text($text)
                ])->text($text1) . $text2
            )
        );