feat: add suffix to invoice number

closes #8699qe4ep
This commit is contained in:
Björn Fromme
2025-09-18 08:35:55 +02:00
parent 4dc977f0d7
commit 94748c0112
2 changed files with 10 additions and 7 deletions
+7 -6
View File
@@ -16,6 +16,7 @@ use App\Entity\User;
use App\Service\Pdf\InvoiceApprover;
use App\Service\Pdf\InvoiceRenderer;
use App\Service\Pdf\Pdf;
use Carbon\CarbonPeriod;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Contracts\Translation\TranslatorInterface;
@@ -81,12 +82,12 @@ class InvoiceRendererTest extends WebTestCase
->setEmail('[email protected]')
;
$assignment = new Assignment();
$assignment
->setDestination($destination)
->setJobProfile($jobProfile)
->setContact($contact)
;
$assignment = $this->createMock(Assignment::class);
$assignment->method('getEffectivePeriod')->willReturn(CarbonPeriod::create('2025-02-01', '2025-02-08'));
$assignment->method('getId')->willReturn(1234);
$assignment->method('getDestination')->willReturn($destination);
$assignment->method('getJobProfile')->willReturn($jobProfile);
$assignment->method('getContact')->willReturn($contact);
$application = new Application($assignment, $teamer);
$disposition = new Disposition($application);