Warenwirtschaft: Review-Fix — Stichtags-Schutz als unveränderliches Flag (sale_stock_exempt)

Der Schutz historischer Bestellungen hing an shipped_at, das der
OrderStatusService beim Status-Toggle nullt und neu stempelt — Storno +
erneutes Versenden einer Alt-Bestellung hätte rückwirkend vom heutigen
Bestand abgezogen. Migration mit einmaligem Backfill (shipped_at vor
16.07.2026), Guard prüft nur noch das Flag.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-07-20 09:41:01 +00:00
parent e6af987237
commit 3eb14762e7
6 changed files with 70 additions and 11 deletions

View file

@ -205,6 +205,7 @@ class ShoppingOrder extends Model
'shipped_at' => 'datetime',
'user_white_label' => 'boolean',
'shipped_status_locked' => 'boolean',
'sale_stock_exempt' => 'boolean',
];
public static $shippedTypes = [