added pdf template and other invoice improvements (#1693)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user