Do not pull in invalid transactions

This commit is contained in:
James Cole
2024-12-21 11:40:34 +01:00
parent 76075401f9
commit 4fbf7b38fb

View File

@@ -463,7 +463,6 @@ class GroupCollector implements GroupCollectorInterface
$this->query->orWhereIn('transaction_journals.transaction_group_id', $groupIds);
}
$result = $this->query->get($this->fields);
// now to parse this into an array.
$collection = $this->parseArray($result);
@@ -1049,6 +1048,7 @@ class GroupCollector implements GroupCollectorInterface
->whereNull('transaction_groups.deleted_at')
->whereNull('transaction_journals.deleted_at')
->whereNull('source.deleted_at')
->whereNotNull('transaction_groups.id')
->whereNull('destination.deleted_at')
->orderBy('transaction_journals.date', 'DESC')
->orderBy('transaction_journals.order', 'ASC')