Release 1.28 (#3587)

* bump version
* extract toolbar cleanup logic to helper class
* allow 3 digits in invoice template tax rate
This commit is contained in:
Kevin Papst
2022-10-24 11:42:56 +02:00
committed by GitHub
parent 14f4530de0
commit 006de60f66
6 changed files with 82 additions and 45 deletions

View File

@@ -107,6 +107,7 @@ class InvoiceControllerTest extends ControllerBaseTest
'company' => 'Company name',
'renderer' => 'default',
'calculator' => 'default',
'vat' => '27,937',
]
]);
@@ -114,6 +115,14 @@ class InvoiceControllerTest extends ControllerBaseTest
$client->followRedirect();
$this->assertTrue($client->getResponse()->isSuccessful());
$this->assertHasFlashSuccess($client);
$template = $this->getEntityManager()->getRepository(InvoiceTemplate::class)->findAll()[0];
self::assertEquals('Test', $template->getName());
self::assertEquals('Test invoice template', $template->getTitle());
self::assertEquals('Company name', $template->getCompany());
self::assertEquals('default', $template->getRenderer());
self::assertEquals('default', $template->getCalculator());
self::assertEquals('27.937', $template->getVat());
}
public function testCopyTemplateAction()