Release 2.0.6 (#3900)

* cleanup invoice templates
* cleanup invoice translations
* fix invoice datetime for now
* support invoice archive order by number and status
* bump version
* allow meta-field sub-classing
* removed unused translation task.delete
* prevent null in str_replace
This commit is contained in:
Kevin Papst
2023-03-08 00:38:10 +01:00
committed by GitHub
parent 80f8f70695
commit 9d503300f6
46 changed files with 422 additions and 534 deletions

View File

@@ -61,13 +61,16 @@ final class InvoiceRendererType extends AbstractType
$type = array_pop($parts);
if (!\is_string($type)) {
return 'programmatic';
}
return match (strtolower($type)) {
'json', 'txt', 'xml' => 'programmatic',
'pdf' => 'PDF',
'docx', 'doc' => 'Word',
'xls', 'xlsx' => 'Excel',
'ods' => 'LibreOffice',
default => ucfirst($type),
default => strtoupper($type),
};
}