Accept conditional service calculation with versioned fiscal profile

This commit is contained in:
2026-10-26 16:48:44 +02:00
parent bc2707bb65
commit 9f480045fa
25 changed files with 801 additions and 3 deletions
+9
View File
@@ -0,0 +1,9 @@
<?php
require __DIR__.'/../vendor/autoload.php';
$app=require __DIR__.'/../bootstrap/app.php'; $app->make(\Illuminate\Contracts\Console\Kernel::class)->bootstrap();
// Input is a reviewed operation manifest, not credentials. Never accepts rates/results or grants.
$options=getopt('',['manifest:','apply']);
if(!isset($options['manifest'])) throw new RuntimeException('Usage: service-fiscal-activate.php --manifest=path [--apply]; specific prior authorisation required.');
$input=json_decode(file_get_contents($options['manifest']),true,32,JSON_THROW_ON_ERROR);
$result=app(\App\Modules\Services\LocalFiscalActivation::class)->execute($input,array_key_exists('apply',$options));
echo json_encode($result,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE).PHP_EOL;