feat: move additional info on invoice pdf to top left
This commit is contained in:
@@ -26,7 +26,7 @@ class InvoiceApprover extends AbstractPdfRenderer
|
|||||||
|
|
||||||
$pdf->SetFont('Arial', '', 11);
|
$pdf->SetFont('Arial', '', 11);
|
||||||
$pdf->SetTextColor(0, 128, 0);
|
$pdf->SetTextColor(0, 128, 0);
|
||||||
$pdf->Text(116.5,84, utf8_decode('geprüft: '.$invoice->getApprovedBy()));
|
$pdf->Text(20,30, utf8_decode('geprüft: '.$invoice->getApprovedBy()));
|
||||||
|
|
||||||
$this->createBackup($filepath);
|
$this->createBackup($filepath);
|
||||||
|
|
||||||
|
|||||||
@@ -39,13 +39,13 @@ class InvoiceRenderer extends AbstractPdfRenderer
|
|||||||
// Cost unit
|
// Cost unit
|
||||||
if (null !== $costUnit = $assignment->getDestination()->getCostUnit()) {
|
if (null !== $costUnit = $assignment->getDestination()->getCostUnit()) {
|
||||||
$pdf->SetFont('Arial', '', 11);
|
$pdf->SetFont('Arial', '', 11);
|
||||||
$pdf->Text(116.5,74, utf8_decode('Kostenstelle: '.$costUnit));
|
$pdf->Text(20,20, utf8_decode('Kostenstelle: '.$costUnit));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cost center
|
// Cost center
|
||||||
if (null !== $costCenter = $assignment->getCostCenter()) {
|
if (null !== $costCenter = $assignment->getCostCenter()) {
|
||||||
$pdf->SetFont('Arial', '', 11);
|
$pdf->SetFont('Arial', '', 11);
|
||||||
$pdf->Text(116.5,79, utf8_decode('Kostenträger: '.$costCenter));
|
$pdf->Text(20,25, utf8_decode('Kostenträger: '.$costCenter));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Invoice number
|
// Invoice number
|
||||||
|
|||||||
Reference in New Issue
Block a user