Warenwirtschaft: AP-47 — Häkchen „In der Produktion anzeigen" in die Karte Warenwirtschaft verschoben und ausformuliert

Kundenfeedback 09.09.2026: Das Kästchen „Produktionsrelevant" oben im Produktformular wurde nicht gefunden. Es sitzt jetzt in der Karte „Warenwirtschaft" direkt unter „Im Produktbestand anzeigen", heißt „In der Produktion anzeigen (Produkt wird selbst hergestellt)" und erklärt im Hilfetext die Wirkung (Zukaufartikel wie Aloe abwählen: keine Anzeige in der Produkt-Auswahl der Produktion und in „Enthalten in"; Produktionsergebnis, Produktbestand und Verkauf unberührt). Feld hält jetzt auch old()-Werte nach Validierungsfehlern.

In-App-Doku (Hinweise, Leitfaden §13/§20) entsprechend umformuliert; Test prüft Label und Platzierung.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-09-09 15:07:36 +00:00
parent 2d5bc6518e
commit 021edbfcc7
4 changed files with 40 additions and 20 deletions

View file

@ -547,15 +547,6 @@
{{ Form::text('base_price', $product->getBasePriceFormattedFull(), ['placeholder' => __(''), 'class' => 'form-control', 'id' => 'base_price', 'readonly']) }}
</div>
<div class="form-group col-sm-3 d-flex align-items-end">
{{-- AP-47: nur produktionsrelevante Produkte erscheinen in der Produktions-Auswahl
und in der „Enthalten in"-Box des Rohstoffbestands. --}}
<label class="custom-control custom-checkbox mb-2">
{!! Form::hidden('production_relevant', 0) !!}
{!! Form::checkbox('production_relevant', 1, $product->production_relevant ?? true, ['class' => 'custom-control-input']) !!}
<span class="custom-control-label">{{ __('Produktionsrelevant') }}</span>
</label>
</div>
<div class="form-group col-sm-4">
<label class="form-label" for="number">{{ __('Artikelnummer') }}</label>
{{ Form::text('number', $product->number, ['placeholder' => __('number'), 'class' => 'form-control', 'id' => 'number']) }}
@ -1128,6 +1119,17 @@
<p class="text-muted small mb-0">{{ __('Abwählen für Positionen ohne Lagerführung (z. B. Abrechnung Druckkosten, Logo-Etiketten).') }}</p>
</div>
{{-- AP-47 (verschoben 09.09.2026 in die Card „Warenwirtschaft", ausformuliert): nur so markierte
Produkte erscheinen in der Produktions-Planung und in der „Enthalten in"-Box des Rohstoffbestands. --}}
<div class="form-group">
<label class="custom-control custom-checkbox">
{!! Form::hidden('production_relevant', 0) !!}
{!! Form::checkbox('production_relevant', 1, old('production_relevant', $product->exists ? $product->production_relevant : true), ['class' => 'custom-control-input', 'id' => 'production_relevant']) !!}
<span class="custom-control-label">{{ __('In der Produktion anzeigen (Produkt wird selbst hergestellt)') }}</span>
</label>
<p class="text-muted small mb-0">{{ __('Abwählen für Zukaufartikel und Handelsware (z. B. Aloe-vera-Produkte): Das Produkt erscheint dann nicht mehr in der Produkt-Auswahl einer neuen Produktion und nicht in der Box „Enthalten in" des Rohstoffbestands. Im Produktionsergebnis bleibt es wählbar (z. B. Zweitgröße aus derselben Masse). Produktbestand und Verkauf sind davon nicht betroffen.') }}</p>
</div>
<div class="form-group col-sm-6 px-0">
<label class="form-label" for="batch_prefix">{{ __('Chargen-Nr.-Präfix') }}</label>
{{ Form::text('batch_prefix', old('batch_prefix', $product->batch_prefix), ['placeholder' => __('z. B. TP1'), 'class' => 'form-control', 'id' => 'batch_prefix', 'maxlength' => 20]) }}