monthly budget, monthly report, unified report calculation (#2684)
This commit is contained in:
@@ -27,6 +27,7 @@ class Extensions extends AbstractExtension
|
||||
public function getFilters()
|
||||
{
|
||||
return [
|
||||
new TwigFilter('report_date', [$this, 'formatReportDate']),
|
||||
new TwigFilter('docu_link', [$this, 'documentationLink']),
|
||||
new TwigFilter('multiline_indent', [$this, 'multilineIndent']),
|
||||
new TwigFilter('color', [$this, 'color']),
|
||||
@@ -48,6 +49,11 @@ class Extensions extends AbstractExtension
|
||||
];
|
||||
}
|
||||
|
||||
public function formatReportDate(\DateTime $dateTime): string
|
||||
{
|
||||
return $dateTime->format('Y-m-d');
|
||||
}
|
||||
|
||||
public function getIsoDayByName(string $weekDay): int
|
||||
{
|
||||
$key = array_search(
|
||||
|
||||
Reference in New Issue
Block a user