Files
SGF/scripts/sgf-assets-period-proof.php
2026-11-11 15:04:01 +02:00

3 lines
1005 B
PHP

<?php
require __DIR__.'/sgf-assets-proof-bootstrap.php';$out=$call('read_only','view',function($e,$actor,$binding,$origin,$scope,$stock,$hostRead)use($native){return$hostRead(fn()=>app(App\Modules\Accounting\FixedAssetLedgerSource::class)->period(App\Models\User::findOrFail(17),['period_key'=>'QA-2026-INTEGRADO','starts_on'=>'2026-01-01','ends_on'=>'2026-12-31'],$native,$scope));});$ok($out['facts']===4&&$out['pending']===1,'period recognises written off corrected cycle and pending concurrent admission');$ok(strlen($out['hash'])===64,'period dependencies fingerprinted');file_put_contents($work.'/assets-period.json',json_encode(['passed'=>true,'checks'=>$checks,'asset_facts'=>$out['facts'],'pending'=>$out['pending'],'reason'=>'One explicitly approved concurrency support asset has no admission journal. Main corrected and written-off cycle resolved.','new_commands'=>0],JSON_PRETTY_PRINT));echo json_encode(['passed'=>true,'checks'=>count($checks),'proof'=>$work.'/assets-period.json']).PHP_EOL;