feat: add suffix to invoice number
closes #8699qe4ep
This commit is contained in:
@@ -37,7 +37,9 @@ class InvoiceRenderer extends AbstractPdfRenderer
|
||||
|
||||
// Invoice number
|
||||
$pdf->SetFont('Arial', '', 12);
|
||||
$number = $assignment->getEffectivePeriod()->start->format('d/m/Y');
|
||||
$date = $assignment->getEffectivePeriod()->start->format('d/m/Y');
|
||||
$suffix = $assignment->getId();
|
||||
$number = sprintf('%s-%05d', $date, $suffix);
|
||||
$pdf->Text(85, 116, $number);
|
||||
|
||||
$pdf->SetFont('Arial', '', 10);
|
||||
|
||||
Reference in New Issue
Block a user