From 3af61fdfd44c7e6c9edeb31ec11403a4650f3820 Mon Sep 17 00:00:00 2001 From: Lung Date: Tue, 12 Dec 2023 22:10:18 +0100 Subject: [PATCH] fixed wrong ordering on bank payments --- src/BankPayment/BankPaymentRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BankPayment/BankPaymentRepository.php b/src/BankPayment/BankPaymentRepository.php index 11d29603..8bfb5173 100755 --- a/src/BankPayment/BankPaymentRepository.php +++ b/src/BankPayment/BankPaymentRepository.php @@ -47,7 +47,7 @@ public function getLastBankPaymentId(Event $event): ?string { $bankPayment = $this->findOneBy( ['event' => $event], - ['bank_id' => false], + [new Order('bank_id', Order::DIRECTION_DESC)], ); return $bankPayment?->bankId;