commit melhorias compras2
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-21 21:11:55 +02:00
parent 12dd6df28a
commit 4fac443dda
13 changed files with 175 additions and 14 deletions
@@ -305,6 +305,7 @@ class SupplyPlanningController extends Controller
'id' => $line->id, 'label' => $orders[$line->purchase_order_id]->number.' · '.$line->description.' · '.$line->quantity.' '.$line->unit,
'stock_item_id' => $orders[$line->purchase_order_id]->snapshot['catalogue_sources'][$line->requisition_item_id]['stock_item_id'] ?? null,
'quantity_milli' => ReceiptWorkflow::milli($line->quantity),
'unit' => $line->unit,
]);
$requests = collect();
if ($canPrepare && $kind === 'reservation') {
@@ -340,6 +341,7 @@ class SupplyPlanningController extends Controller
}
return Inertia::render('supply/coordination', ['kind' => $kind, 'ready' => $ready,
'conversionQaEnabled' => app()->environment('testing') && config('inventory_conversion.qa_enabled') === true,
'recordFilters' => ['record_search' => trim($filters['record_search'] ?? ''), 'record_state' => $filters['record_state'] ?? ''],
'recordPagination' => $page === null ? null : ['current_page' => $page->currentPage(), 'last_page' => $page->lastPage(), 'total' => $page->total(),
'prev_page_url' => $page->previousPageUrl(), 'next_page_url' => $page->nextPageUrl()],