commit compras1 2911
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-29 05:28:30 +02:00
parent 1ddabbbdcc
commit 448948a487
137 changed files with 9481 additions and 1926 deletions
@@ -12,9 +12,10 @@ final class OperationalOrdersController extends Controller
{
public function index(Request $request, OperationalOrders $orders, ?Requisition $requisition = null): Response
{
$request->validate(['page' => 'nullable|integer|min:1|max:1000000']);
$data = $request->validate(['page' => 'nullable|integer|min:1|max:1000000', 'order_id' => 'nullable|integer|min:1']);
Inertia::encryptHistory();
$response = Inertia::render('requisitions/operational-orders', $orders->workspace($this->staffIdentity($request), $requisition))->toResponse($request);
$selected = $requisition === null && isset($data['order_id']) ? (int) $data['order_id'] : null;
$response = Inertia::render('requisitions/operational-orders', $orders->workspace($this->staffIdentity($request), $requisition, $selected))->toResponse($request);
$response->headers->set('Cache-Control', 'private, no-store, max-age=0');
return $response;