commit compras3 2911
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-29 16:03:11 +02:00
parent 7da8d6c87a
commit 30bfb1a773
72 changed files with 10998 additions and 98 deletions
+7
View File
@@ -128,6 +128,13 @@ final class GeneralLedger
$engine = $this->engine($user);
$data = $engine->cycleListing($page);
$data['book'] = $engine->listing(['page' => $page]);
if (app(StandaloneRuntime::class)->enabled()) {
$context = app(SupplierPayables::class)->readContext($user);
$rules = DB::table('gl_rules')->where($context['scope'])->orderByDesc('version')->get()
->unique('rule_key')->values()->map(fn ($rule) => (array) $rule)->all();
$data['configuration'] = ['rules' => $rules];
$data['synthetic_only'] = app(StandaloneRuntime::class)->syntheticOnly();
}
$actions = ['prepare', 'validate', 'post', 'correct_prepare', 'correct_validate', 'correct_post', 'period_prepare', 'period_validate', 'period_close'];
$data['permissions'] = array_combine($actions, array_map(fn ($a) => $this->can($user, $a), $actions));