3 lines
1.1 KiB
PHP
3 lines
1.1 KiB
PHP
<?php
|
|
$book='8085';require __DIR__.'/sgf-assets-proof-bootstrap.php';config(['sales_ledger.synthetic_enabled'=>true,'cost_ledger.synthetic_enabled'=>true,'industrial_ledger.synthetic_enabled'=>true,'cost_ledger.correction_enabled'=>true,'industrial_ledger.correction_enabled'=>true,'cash_qa.enabled'=>true,'cash_qa.binding_sha256'=>hash_file('sha256',$s['root'].'/cash-binding.json')]);try{$out=$call('read_only','view',function($e){$method=new ReflectionMethod($e,'periodSnapshot');return$method->invoke($e,'QA-2026-INTEGRADO');});}catch(Throwable $e){echo json_encode(['error'=>get_class($e),'file'=>$e->getFile(),'line'=>$e->getLine(),'trace'=>array_map(fn($t)=>array_intersect_key($t,array_flip(['file','line','class','function'])),array_slice($e->getTrace(),0,9))]);exit(1);}file_put_contents($work.'/assets-current-period-private.json',json_encode($out));$pending=$out['pending']??$out['pending_facts']??null;$keys=array_keys($out);echo json_encode(['keys'=>$keys,'pending'=>$pending,'facts'=>$out['facts']??null,'proof'=>$work.'/assets-current-period-private.json']).PHP_EOL;
|