diff --git a/src/pages/accounting/AccountingJournalEntriesPage.tsx b/src/pages/accounting/AccountingJournalEntriesPage.tsx index 518952d..94e0bb2 100644 --- a/src/pages/accounting/AccountingJournalEntriesPage.tsx +++ b/src/pages/accounting/AccountingJournalEntriesPage.tsx @@ -164,6 +164,10 @@ export default function AccountingJournalEntriesPage() { setOpen(false); resetForm(); qc.invalidateQueries({ queryKey: ["journal-entries", cid] }); + // Manual JEs post straight to the GL, so refresh anything built from it: + // the Reports data (P&L / Balance Sheet) and the General Ledger tab. + qc.invalidateQueries({ queryKey: ["reports-data", cid] }); + qc.invalidateQueries({ queryKey: ["gl-journal-entries", cid] }); }; const deleteEntry = async (id: string) => { @@ -173,6 +177,10 @@ export default function AccountingJournalEntriesPage() { toast.success("Journal entry deleted"); if (detailId === id) setDetailId(null); qc.invalidateQueries({ queryKey: ["journal-entries", cid] }); + // Manual JEs post straight to the GL, so refresh anything built from it: + // the Reports data (P&L / Balance Sheet) and the General Ledger tab. + qc.invalidateQueries({ queryKey: ["reports-data", cid] }); + qc.invalidateQueries({ queryKey: ["gl-journal-entries", cid] }); }; if (!associationId) return

Select an association.

;