setting should be read via function

This commit is contained in:
Sevan Nerse 2021-03-25 18:25:03 +03:00
parent f9ea44c9a5
commit ecb19c9ac4

View File

@ -185,7 +185,7 @@ abstract class Report
{
$formatted_date = null;
switch ($event->class->model->settings->period) {
switch ($event->class->getSetting('period')) {
case 'yearly':
$financial_year = $this->getFinancialYear($event->class->model->year);