Feat: Impmlement invoice pdf rendering

This commit is contained in:
Björn Fromme
2023-10-13 14:36:42 +02:00
parent 38e04392e7
commit 0685cd4c96
5 changed files with 157 additions and 4 deletions
+4 -3
View File
@@ -8,10 +8,12 @@ class ContractRenderer extends AbstractPdfRenderer
{
public function render(Disposition $disposition): Pdf
{
$teamer = $disposition->getTeamer();
$pdf = new Pdf();
$pdf->SetAuthor('Continentale', true);
$pdf->SetCreator('Continentale', true);
$pdf->SetAuthor($teamer->getFullName(), true);
$pdf->SetCreator($teamer->getFullName(), true);
// Load template
$pdfTemplate = sprintf('%s/assets/pdf/contract.pdf', $this->config['project_dir']);
@@ -20,7 +22,6 @@ class ContractRenderer extends AbstractPdfRenderer
$pdf->SetFont('Arial', '', 10);
$teamer = $disposition->getTeamer();
$assignment = $disposition->getAssignment();
$destination = $assignment->getDestination();