feat: additional receipts as attachments to teamer invoices

addresses #869dv97u9
This commit is contained in:
2026-09-09 11:10:57 +02:00
parent 16d847137d
commit 52926ec6cc
29 changed files with 682 additions and 23 deletions
+9
View File
@@ -143,6 +143,15 @@ class UploadRepository extends ServiceEntityRepository
->andWhere($qb->expr()->eq('upload.type', ':type'))
->setParameter('type', $type)
;
} else {
// Belege are evidence for a Honorarnote, never checked in their own right - they have
// no status and are reachable from the check modal of their invoice. This is the only
// upload query that is not already scoped to a type, so it is the only one that would
// otherwise pad the list with them.
$qb
->andWhere($qb->expr()->neq('upload.type', ':excludedType'))
->setParameter('excludedType', Upload::TYPE_RECEIPT)
;
}
if (null !== $dateFrom = $filterDto->getDateFrom()) {