Warenwirtschaft: AP-20 Rohstoffbestand-Filter + Kein-Rohstoffbestand-Flag
- ingredients.exclude_from_stock (Checkbox im INCI-Formular, z. B. Allergene): erscheint nie im Rohstoffbestand und nicht im Kritisch-Badge - Rohstoffbestand-Uebersicht: Umschalter "Alle" / "Nur aus Herstellerrezepturen" (?scope=recipe, nutzt scopeUsedInActiveRecipes aus AP-21) - Fix: AP-21-Migrationen hatten identischen Timestamp (add_storage lief vor create_storage und scheiterte auf MySQL am FK) - umbenannt auf 120753, Teilreste bereinigt, Migrationen sauber ausgefuehrt - Hinweise-Doku fortgeschrieben Tests: RawMaterialStockTest +2 (volle Suite 172 gruen, 624 Assertions) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
d05df498d3
commit
ea36067831
11 changed files with 113 additions and 5 deletions
|
|
@ -35,6 +35,7 @@ class StoreIngredientRequest extends FormRequest
|
|||
'storage_shelf_id' => ['nullable', 'integer', 'exists:storage_shelves,id'],
|
||||
'storage_slot_id' => ['nullable', 'integer', 'exists:storage_slots,id'],
|
||||
'active' => ['sometimes', 'boolean'],
|
||||
'exclude_from_stock' => ['sometimes', 'boolean'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
@ -42,6 +43,7 @@ class StoreIngredientRequest extends FormRequest
|
|||
{
|
||||
$this->merge([
|
||||
'active' => $this->boolean('active'),
|
||||
'exclude_from_stock' => $this->boolean('exclude_from_stock'),
|
||||
'default_factor' => $this->normalizeDecimal($this->input('default_factor')),
|
||||
'min_stock_alert' => $this->normalizeDecimal($this->input('min_stock_alert')),
|
||||
'material_quality_id' => $this->nullIfEmpty($this->input('material_quality_id')),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue