Skip to content
Snippets Groups Projects
Commit 1bc69522 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#267 - reversed order of payments

parent eb6309df
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,6 @@ public class PaymentController extends BaseController
{
DateTime startDate = DateTime.now().withYear(year).withMonthOfYear(month).minusMonths(1).dayOfMonth().withMaximumValue();
DateTime endDate = DateTime.now().withYear(year).withMonthOfYear(month).dayOfMonth().withMaximumValue();
return paymentRepository.findAllByDateBetweenOrderByDate(startDate, endDate);
return paymentRepository.findAllByDateBetweenOrderByDateDesc(startDate, endDate);
}
}
\ No newline at end of file
......@@ -9,5 +9,5 @@ import java.util.List;
public interface PaymentRepository extends JpaRepository<Payment, Integer>
{
List<Payment> findAllByDateBetweenOrderByDate(DateTime startDate, DateTime endDate);
List<Payment> findAllByDateBetweenOrderByDateDesc(DateTime startDate, DateTime endDate);
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment