Warenwirtschaft: F-10 — Versandabschluss nur mit Zahlungsfreigabe

Board-Statuswechsel auf „versendet“ prüft serverseitig isReadyToShip()
(Rechnung/API weiterhin erlaubt); Button im Board ohne Freigabe deaktiviert.
Konfektionieren bleibt vor Zahlungseingang möglich.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Kevin Adametz 2026-09-08 11:04:07 +00:00
parent db27f040e6
commit f93b16c8f7
3 changed files with 47 additions and 1 deletions

View file

@ -227,7 +227,12 @@
</button>
</form>
@endif
@if (in_array((int) $order->shipped, [0, 1], true))
@if (in_array((int) $order->shipped, [0, 1], true) && ! $readyToShip)
{{-- F-10: ohne Zahlungsfreigabe kein Versandabschluss (Server prüft ebenfalls) --}}
<button type="button" class="btn btn-sm btn-primary" disabled title="{{ __('Wartet auf Zahlung — Versand erst nach Zahlungseingang') }}">
<span class="fas fa-shipping-fast mr-1"></span><span class="of-btn-text">{{ __('Versendet') }}</span>
</button>
@elseif (in_array((int) $order->shipped, [0, 1], true))
<form action="{{ route('admin.inventory.orders.status', $order->id) }}" method="post" class="d-inline"
onsubmit="return confirm(@json(__('Bestellung als versendet buchen? Der Produktbestand wird abgezogen.')));">
@csrf