From 2ffdaa088fbcf71c93724e4e89e157f06f43ce20 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Sun, 25 Jan 2026 11:55:43 +0100 Subject: [PATCH] allow to filter invoices for customer --- src/EventSubscriber/Actions/CustomerSubscriber.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/EventSubscriber/Actions/CustomerSubscriber.php b/src/EventSubscriber/Actions/CustomerSubscriber.php index a5e803406..84459cec8 100644 --- a/src/EventSubscriber/Actions/CustomerSubscriber.php +++ b/src/EventSubscriber/Actions/CustomerSubscriber.php @@ -72,6 +72,10 @@ final class CustomerSubscriber extends AbstractActionsSubscriber $event->addActionToSubmenu('filter', 'timesheet', ['title' => 'timesheet.filter', 'url' => $this->path('admin_timesheet', ['customers[]' => $customer->getId()])]); } + if ($this->isGranted('view_invoice')) { + $event->addActionToSubmenu('filter', 'invoice', ['title' => 'invoices', 'url' => $this->path('admin_invoice_list', ['customers[]' => $customer->getId()])]); + } + if ($event->hasSubmenu('filter')) { $event->addDivider(); }