commit melhorias sgf

This commit is contained in:
2026-11-11 09:00:17 +02:00
parent 0b05a1192c
commit 1d11a5e57b
736 changed files with 40746 additions and 210 deletions
@@ -107,6 +107,12 @@ final class ServiceInvoicing
{
return $this->command($actor,'service_invoices.issue',fn($s)=>$this->reviewInside($draft,$series,$rule,$actor,$s));
}
/** Readiness for a staged document; issuance still requires the original issue right. */
public function reviewDocumentIntent(int $draft,int $series,int $rule,int $actor):array
{
abort_unless(config('service_documents.enabled')===true,404);
return $this->command($actor,'service_documents.view',fn($s)=>$this->reviewInside($draft,$series,$rule,$actor,$s));
}
private function reviewInside(int $draft,int $series,int $rule,int $actor,array $s): array
{
$view=$this->preview->captureDraftForIssuance($draft,$actor); $date=now(self::ZONE)->format('Y-m-d'); $blocks=[];