added pdf template and other invoice improvements (#1693)

This commit is contained in:
Kevin Papst
2020-05-10 16:19:59 +02:00
committed by GitHub
parent 4e1ffedc20
commit e3749c8e8f
45 changed files with 561 additions and 89 deletions

View File

@@ -77,7 +77,13 @@ class InvoiceRendererType extends AbstractType
array_pop($parts);
}
return ucfirst(array_pop($parts));
$type = array_pop($parts);
if (\in_array(strtolower($type), ['json', 'txt', 'xml'])) {
return 'programmatic';
}
return ucfirst($type);
}
/**