Preserva B1 aceite de confirmacao interna sem validade fiscal

This commit is contained in:
2026-10-25 22:22:41 +02:00
parent ca13acb74e
commit 8fcd52c31d
26 changed files with 724 additions and 10 deletions
+1
View File
@@ -13,6 +13,7 @@ try {
\Illuminate\Support\Facades\DB::table('companies')->where('id', $input['company'])->lockForUpdate()->firstOrFail();
echo "LOCK_ACQUIRED\n"; flush(); usleep(2000000);
}
if (($input['operation'] ?? '') === 'b1.confirm') { return app(\App\Modules\Services\InternalConfirmation::class)->confirm($input['id'], $input['actor'], $input['version'], $input['key']); }
return app(\App\Modules\Services\ServiceWorkflow::class)->save('clients', $input['id'] ?? null, $input['actor'], $input['data'], $input['key']);
});
echo json_encode(['status' => 200, 'result' => $result], JSON_THROW_ON_ERROR).PHP_EOL;