feat: additional receipts as attachments to teamer invoices
addresses #869dv97u9
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user