Warenwirtschaft: Review-Fix — Hinweis auf kritische Rohstoffe außerhalb der Rezepturen
Der Default-Scope 'recipe' blendet rezepturlose Rohstoffe aus, das Sidebar-Badge zählt aber alle aktiven kritischen — Badge und Seite konnten sich widersprechen. Die recipe-Ansicht zeigt jetzt einen Hinweis mit 'Alle anzeigen', sobald das Badge mehr zählt; Empty-State-Text scope-abhängig. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
80d0687f95
commit
f4256bfc89
5 changed files with 65 additions and 2 deletions
|
|
@ -77,6 +77,19 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
@if (($hiddenCriticalCount ?? 0) > 0)
|
||||
{{-- Review 20.07.2026: Badge zählt alle aktiven Rohstoffe, diese Ansicht nur
|
||||
die aus Herstellerrezepturen — sonst widersprechen sich Badge und Seite --}}
|
||||
<div class="alert alert-warning py-2 px-3 small mb-3" role="alert">
|
||||
{{ trans_choice(
|
||||
'{1}:count kritischer Rohstoff liegt außerhalb der Herstellerrezepturen und wird hier nicht angezeigt.|[2,*]:count kritische Rohstoffe liegen außerhalb der Herstellerrezepturen und werden hier nicht angezeigt.',
|
||||
$hiddenCriticalCount,
|
||||
['count' => $hiddenCriticalCount],
|
||||
) }}
|
||||
<a href="{{ route('admin.inventory.raw-material-stock.index', ['scope' => 'all']) }}" class="alert-link">{{ __('Alle anzeigen') }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table wawi-table" id="rms-table">
|
||||
<thead>
|
||||
|
|
@ -156,7 +169,7 @@
|
|||
<td colspan="7">
|
||||
<div class="wawi-empty">
|
||||
<div><span class="fas fa-flask"></span></div>
|
||||
{{ __('Keine aktiven Rohstoffe vorhanden.') }}
|
||||
{{ $scope === 'recipe' ? __('Keine Rohstoffe aus Herstellerrezepturen vorhanden.') : __('Keine aktiven Rohstoffe vorhanden.') }}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue