feat: render additional info to teamer invoice

This commit is contained in:
Björn Fromme committed 2025-02-28 15:15:02 +01:00
1 parent 901b2c7104
commit cdd0666837
14 files changed
+233 -13

No files matched your search

+13
View File
@@ -3,6 +3,7 @@
namespace App\Service\Pdf;
use App\Entity\Disposition;
use App\Entity\Upload;
class InvoiceRenderer extends AbstractPdfRenderer
{
@@ -35,6 +36,18 @@ class InvoiceRenderer extends AbstractPdfRenderer
// Tax ID
$pdf->Text(144,62, utf8_decode($teamer->getTaxId()));
// Cost unit
if (null !== $costUnit = $assignment->getDestination()->getCostUnit()) {
$pdf->SetFont('Arial', '', 11);
$pdf->Text(116.5,74, utf8_decode('Kostenstelle: '.$costUnit));
}
// Cost center
if (null !== $costCenter = $assignment->getCostCenter()) {
$pdf->SetFont('Arial', '', 11);
$pdf->Text(116.5,79, utf8_decode('Kostenträger: '.$costCenter));
}
// Invoice number
$pdf->SetFont('Arial', '', 12);
$number = $assignment->getEffectivePeriod()->start->format('d/m/Y');