Files
SGF/scripts/sgf-human-resources-setup.php
2026-11-11 09:00:17 +02:00

7 lines
660 B
PHP

<?php
$book=$argv[1]??'regression';require __DIR__.'/sgf-ledger-proof-bootstrap.php';
if($book==='8085'&&!is_file($s['root'].'/remunerations-backup-pointer.json'))throw new LogicException('Original baseline required');
$out=app(App\Shared\Installation\HumanResourcesProfiles::class)->install();
file_put_contents($work.'/hr-profiles-setup.json',json_encode(['passed'=>true,'book'=>$book,'new_grants'=>$out['new_grants'],'profiles'=>$out['profiles'],'source_hash'=>$out['source_hash'],'new_demo'=>false,'new_pg_roles'=>0],JSON_PRETTY_PRINT));echo json_encode(['passed'=>true,'proof'=>$work.'/hr-profiles-setup.json','new_grants'=>$out['new_grants']]).PHP_EOL;