Feat: Impmlement invoice pdf rendering
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user