Fix spacing between historical lot cards
This commit is contained in:
1 parent
8f7fb9875a
commit
77f6fee5ac
1 file changed
+2
-2
@@ -302,7 +302,7 @@ function auth_render_lager_historical_lots(array $lagerProducts): string
|
||||
$html = [];
|
||||
foreach ($lagerProducts as $product) {
|
||||
$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) {
|
||||
$qtyNet = (float) ($lot['qty_net'] ?? 0);
|
||||
$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>'
|
||||
. '</div></article>';
|
||||
}
|
||||
$html[] = '</div>';
|
||||
$html[] = '</div></div>';
|
||||
}
|
||||
|
||||
return implode('', $html);
|
||||
|
||||
Reference in new issue
Block a user