Fix spacing between historical lot cards

This commit is contained in:
gitea_admin committed 2026-09-08 18:26:56 +02:00
1 parent 8f7fb9875a
commit 77f6fee5ac
1 file changed
+2 -2
+2 -2
View File
@@ -302,7 +302,7 @@ function auth_render_lager_historical_lots(array $lagerProducts): string
$html = []; $html = [];
foreach ($lagerProducts as $product) { foreach ($lagerProducts as $product) {
$productId = (int) ($product['id'] ?? 0); $productId = (int) ($product['id'] ?? 0);
$html[] = '<div data-lager-historical-product="' . $productId . '" hidden>'; $html[] = '<div data-lager-historical-product="' . $productId . '" hidden><div class="sg-content-group-box" data-component="content-group-box">';
foreach (($product['historical_lots'] ?? []) as $lot) { foreach (($product['historical_lots'] ?? []) as $lot) {
$qtyNet = (float) ($lot['qty_net'] ?? 0); $qtyNet = (float) ($lot['qty_net'] ?? 0);
$emptyDate = $qtyNet <= 0 ? auth_format_lager_date($lot['last_out_at'] ?? null) : 'Nicht eindeutig'; $emptyDate = $qtyNet <= 0 ? auth_format_lager_date($lot['last_out_at'] ?? null) : 'Nicht eindeutig';
@@ -320,7 +320,7 @@ function auth_render_lager_historical_lots(array $lagerProducts): string
. '<strong>Hersteller-Chargennummer:</strong> ' . auth_escape_html((string) ($lot['manufacturer_lot_number'] ?? 'Nicht hinterlegt')) . '</p>' . '<strong>Hersteller-Chargennummer:</strong> ' . auth_escape_html((string) ($lot['manufacturer_lot_number'] ?? 'Nicht hinterlegt')) . '</p>'
. '</div></article>'; . '</div></article>';
} }
$html[] = '</div>'; $html[] = '</div></div>';
} }
return implode('', $html); return implode('', $html);