commit compras 2711
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-27 13:49:31 +02:00
parent dc73540558
commit e709d900d1
81 changed files with 5352 additions and 107 deletions
@@ -15,6 +15,7 @@ use App\Models\SupplyRecord;
use App\Models\User;
use App\Models\Warehouse;
use App\Services\AgreementOrderLimits;
use App\Services\ImportDossier;
use App\Services\ImportLandedCosts;
use App\Services\InventoryReversals;
use App\Services\OrganizationAccess;
@@ -112,6 +113,7 @@ class SupplyPlanningController extends Controller
? $this->approvedOptions($planning, 'contract', $records->pluck('data.contract_key')->push($contractFilters['selected_contract_key'] ?? null), ['agreement_search' => $contractFilters['contract_search'] ?? ''])->map(fn ($r) => $r->only(['record_key', 'version', 'data', 'snapshot'])) : [],
'orderLimitsReady' => app(AgreementOrderLimits::class)->ready(),
'importCostsReady' => $import && $actor->hasFunctions([PurchasingRole::Finance]) && app(ImportLandedCosts::class)->ready(),
'importDossierReady' => $import && $actor->hasFunctions(['import_read', 'import_prepare', 'finance']) && app(ImportDossier::class)->ready(),
'linkedAgreementKey' => $kind === 'policy' ? $request->query('linked_agreement_key') : null,
'linkedContractKey' => $kind === 'agreement' ? $request->query('linked_contract_key') : null,
'agreementSearch' => $agreementFilters['agreement_search'] ?? '', 'agreementFormKey' => $agreementFilters['agreement_form_key'] ?? null,