feat(pdf) : refonte en-tête rapport poids case - étape 2
Inversion du sens de lecture du tableau principal : colonnes mois en ordre inverse, fixes (date naissance, poids, n° travail) à droite. Tri des bovins par n° de travail croissant. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -91,6 +91,22 @@ final readonly class BuildingCaseWeightsReportProvider implements ProviderInterf
|
||||
];
|
||||
}
|
||||
|
||||
usort($rows, static function (array $a, array $b): int {
|
||||
$aw = (string) ($a['workNumber'] ?? '');
|
||||
$bw = (string) ($b['workNumber'] ?? '');
|
||||
if ('' === $aw && '' === $bw) {
|
||||
return 0;
|
||||
}
|
||||
if ('' === $aw) {
|
||||
return 1;
|
||||
}
|
||||
if ('' === $bw) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return (int) $aw <=> (int) $bw;
|
||||
});
|
||||
|
||||
$monthHeaders = $this->buildMonthHeaders($firstArrivalDate, $headerBreedCode);
|
||||
|
||||
$dompdf = new Dompdf();
|
||||
|
||||
Reference in New Issue
Block a user