feat(heures) : affichage des jours travaillés (CUSTOM) sur la vue Jour
Auto Tag Develop / tag (push) Successful in 12s

Le libellé sous le nom de l'employé affiche en suffixe les jours du planning
workDaysHours au format court (ex. BUREAU — CDI — LU,JE) pour les contrats CUSTOM.
Résolu à la date filtrée et exposé via WorkHourDayContext.workDaysHours ; formaté
front par formatWorkedDaysShort. Limité aux CUSTOM (35h/39h/forfait/intérim sans
planning → rien affiché) et à l'écran Heures (pas Heures Conducteurs).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-12 14:33:46 +02:00
parent 4b22270c60
commit 7187989003
12 changed files with 106 additions and 7 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ final class WorkHourDayContext
* trackingMode:?string,
* weeklyHours:?int,
* contractType:?string,
* contractName:?string
* contractName:?string,
* workDaysHours:?array<int, int>
* }>
*/
public array $rows = [];
+5 -1
View File
@@ -25,6 +25,8 @@ final class DayContextRow
public ?int $weeklyHours = null,
public ?string $contractType = null,
public ?string $contractName = null,
/** @var null|array<int, int> iso day (1=Mon..5=Fri) → minutes, planning des jours travaillés (CUSTOM uniquement) */
public ?array $workDaysHours = null,
) {}
public function setFormation(string $label): void
@@ -87,7 +89,8 @@ final class DayContextRow
* trackingMode:?string,
* weeklyHours:?int,
* contractType:?string,
* contractName:?string
* contractName:?string,
* workDaysHours:?array<int, int>
* }
*/
public function toArray(): array
@@ -111,6 +114,7 @@ final class DayContextRow
'weeklyHours' => $this->weeklyHours,
'contractType' => $this->contractType,
'contractName' => $this->contractName,
'workDaysHours' => $this->workDaysHours,
];
}
+1
View File
@@ -72,6 +72,7 @@ final readonly class WorkHourDayContextProvider implements ProviderInterface
weeklyHours: $contract?->getWeeklyHours(),
contractType: $contract?->getType()->value,
contractName: $contract?->getName(),
workDaysHours: $workDaysMinutes,
);
}