Enable grouping by vendor in the expense report

This commit is contained in:
Hillel Coren 2017-02-07 16:04:09 +02:00
parent e8fda5f67e
commit 5cebbbe06a

View File

@ -67,7 +67,7 @@ class AbstractReport
if (strpos($field, 'date') !== false) { if (strpos($field, 'date') !== false) {
//$class[] = 'group-date-monthyear'; //$class[] = 'group-date-monthyear';
$class[] = 'group-date-' . (isset($this->options['group_dates_by']) ? $this->options['group_dates_by'] : 'monthyear'); $class[] = 'group-date-' . (isset($this->options['group_dates_by']) ? $this->options['group_dates_by'] : 'monthyear');
} elseif (in_array($field, ['client', 'method'])) { } elseif (in_array($field, ['client', 'vendor', 'method'])) {
$class[] = 'group-letter-100'; $class[] = 'group-letter-100';
} elseif (in_array($field, ['amount', 'paid', 'balance'])) { } elseif (in_array($field, ['amount', 'paid', 'balance'])) {
$class[] = 'group-number-50'; $class[] = 'group-number-50';