Biete in der Shopliste Auswahl, Reihenfolge, Listenansicht und Seiten
CI Feature / test (push) Successful in 6m4s
CI Feature / test (push) Successful in 6m4s
- ShopCatalog::listing mit Auswahl nach Thema, Materialart, Eignung und Nutzerkreis, Reihenfolge, Ansicht und Seiten - Listenansicht shop/zeile, gemeinsame Liste fuer Shopseite und Widget (Variante Liste, Einstellung Auswahl fuer Besucher) - Werte aus dem Abfragetext werden gegen vorhandene Werte geprueft, Felder als Liste und Zahlen ausserhalb des Bereichs sind harmlos - Suchfeld heisst nach dem Umbau Zurücksetzen statt Suche zuruecksetzen (Test bewusst angepasst) - ADR-57 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95a888d1ca
commit
f0ffb47210
15 files changed
+651
-73
No files matched your search
@@ -210,7 +210,7 @@ private function optionsFor(string $key): array
|
||||
/**
|
||||
* Günstigster Preis und Zahl der Optionen je Seite einer Art ('a', 'b' oder 'c'): Kennung => Zusammenfassung.
|
||||
*
|
||||
* @return array<int, array{from_cents: int, count: int}>
|
||||
* @return array<int, array{from_cents: int, count: int, holders: list<string>, scopes: list<string>}>
|
||||
*/
|
||||
private function summariesOf(string $kind): array
|
||||
{
|
||||
@@ -224,6 +224,8 @@ private function summariesOf(string $kind): array
|
||||
$summary[(int) substr($key, 2)] = [
|
||||
'from_cents' => min(array_map(fn (array $row): int => (int) $row['version']->price_cents, $rows)),
|
||||
'count' => count($rows),
|
||||
'holders' => array_values(array_unique(array_map(fn (array $row): string => (string) $row['version']->holder_kind, $rows))),
|
||||
'scopes' => array_values(array_unique(array_filter(array_map(fn (array $row): ?string => $row['version']->licence_scope, $rows)))),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -233,7 +235,7 @@ private function summariesOf(string $kind): array
|
||||
/**
|
||||
* Artikel mit kaufbarer Option: Artikelkennung => günstigster Preis und Zahl der Optionen.
|
||||
*
|
||||
* @return array<int, array{from_cents: int, count: int}>
|
||||
* @return array<int, array{from_cents: int, count: int, holders: list<string>, scopes: list<string>}>
|
||||
*/
|
||||
public function articleSummaries(): array
|
||||
{
|
||||
@@ -243,7 +245,7 @@ public function articleSummaries(): array
|
||||
/**
|
||||
* Pakete mit kaufbarer Option: Paketkennung => günstigster Preis und Zahl der Optionen.
|
||||
*
|
||||
* @return array<int, array{from_cents: int, count: int}>
|
||||
* @return array<int, array{from_cents: int, count: int, holders: list<string>, scopes: list<string>}>
|
||||
*/
|
||||
public function bundleSummaries(): array
|
||||
{
|
||||
@@ -253,7 +255,7 @@ public function bundleSummaries(): array
|
||||
/**
|
||||
* Altbestand: Programmseiten mit kaufbaren Optionen (Angebote mit mehreren Positionen).
|
||||
*
|
||||
* @return array<int, array{from_cents: int, count: int}>
|
||||
* @return array<int, array{from_cents: int, count: int, holders: list<string>, scopes: list<string>}>
|
||||
*/
|
||||
public function summaries(): array
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user