fixed report groups and filters

This commit is contained in:
Denis Duliçi
2021-01-24 22:51:01 +03:00
parent 2b90f877d2
commit 3181a058db
10 changed files with 24 additions and 28 deletions

View File

@@ -114,11 +114,11 @@ abstract class Report
public function applyAccountGroup($event)
{
if (($event->model->getTable() != 'invoices') && ($event->model->getTable() != 'bills')) {
if ($event->model->getTable() != 'documents') {
return;
}
$filter = request('accounts', []);
$filter = explode(',', $this->getSearchStringValue('account_id'));
$event->model->account_id = 0;