private readonly Connection
$connection ) { } public function supports(): string
{ return self::TYPE;
} public function render(array
$operations, Context
$context, DocumentRendererConfig
$rendererConfig): RendererResult
{ $result =
new RendererResult();
$template = '@Framework/documents/credit_note.html.twig';
$ids = \
array_map(fn (DocumentGenerateOperation
$operation) =>
$operation->
getOrderId(),
$operations);
if (empty($ids)) { return $result;
} $referenceInvoiceNumbers =
[];