Improve report grouping

This commit is contained in:
Hillel Coren 2017-02-07 16:12:46 +02:00
parent 4adb51e75f
commit 26a33f26e1

View File

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