From 1b0b469c7b63d6963a06aeea85ad0eb14d698650 Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Sat, 13 Jul 2024 18:44:13 +0200 Subject: [PATCH] fix: refresh grid issue --- README.md | 13 +++++++------ .../munera/views/expenses/ExpensesView.java | 1 + 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index af66419..2a4cf1c 100644 --- a/README.md +++ b/README.md @@ -39,11 +39,11 @@ Munera is a companion for managing expenses efficiently and effortlessly, whethe 2. **Weekly and Monthly Summaries** - Create functionality to generate weekly and monthly summaries, including filtering and sorting options. - ~~- Create a dashboard or log of "next expenses" that lists the next recurring expenses that you expect to receive~~ + - ~~Create a dashboard or log of "next expenses" that lists the next recurring expenses that you expect to receive~~ 3. **Reports for Creditors and Debtors** - ~~- Develop reports outlining debts or credits for each creditor and debtor to provide users with a comprehensive overview.~~ - ~~- CRUD operations for creditors and debtors~~ + - ~~Develop reports outlining debts or credits for each creditor and debtor to provide users with a comprehensive overview.~~ + - ~~CRUD operations for creditors and debtors~~ 4. **Create a way to set the currency of each expense** - It should be possible in the form of an expense @@ -51,12 +51,13 @@ Munera is a companion for managing expenses efficiently and effortlessly, whethe - If possible, the calculations should take into account the different currencies 5. **Events** - ~~- Options to create events in which to put expenses (vacations, congress, etc)~~ - ~~- Each event has a number of people connected to it, expenses can be added to these people~~ + - ~~Options to create events in which to put expenses (vacations, congress, etc)~~ + - ~~Each event has a number of people connected to it, expenses can be added to these people~~ - A reports tells which people need to give/take money to which people in order to be even ## Known Issues - Form still needs more validation when empty, some entities can be created with all null values, even the ones that have constraints throw SQL errors, they need to be gracefully handled. - Graphs still need a lot of improvements -- PeriodUnit and Interval need to be implemented \ No newline at end of file +- PeriodUnit and Interval need to be implemented +- ~~ExpenseView dosent refresh after an edit operation anymore~~ \ No newline at end of file diff --git a/src/main/java/com/application/munera/views/expenses/ExpensesView.java b/src/main/java/com/application/munera/views/expenses/ExpensesView.java index 7f5ec82..c691a7f 100644 --- a/src/main/java/com/application/munera/views/expenses/ExpensesView.java +++ b/src/main/java/com/application/munera/views/expenses/ExpensesView.java @@ -276,6 +276,7 @@ public class ExpensesView extends Div implements BeforeEnterObserver { } private void refreshGrid() { + grid.setItems(this.expenseService.findAll()); grid.select(null); grid.getDataProvider().refreshAll(); }