From d888bf19f62218e2d54bdf5f26896eb8e2262119 Mon Sep 17 00:00:00 2001 From: firepolo Date: Mon, 13 Feb 2023 15:40:39 +0100 Subject: [PATCH 1/2] display success message --- src/pages/ManualInvoicesPage.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages/ManualInvoicesPage.jsx b/src/pages/ManualInvoicesPage.jsx index e98834a..b22600c 100644 --- a/src/pages/ManualInvoicesPage.jsx +++ b/src/pages/ManualInvoicesPage.jsx @@ -397,14 +397,22 @@ export function ManualInvoicesPage() { From 250393cce6006046857dbb8e40750f72a0bcca69 Mon Sep 17 00:00:00 2001 From: Daniel Rodriguez Date: Tue, 14 Feb 2023 02:44:58 +0200 Subject: [PATCH 2/2] refetch after generate grouped --- src/pages/ManualInvoicesPage.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/ManualInvoicesPage.jsx b/src/pages/ManualInvoicesPage.jsx index b22600c..8dc4a70 100644 --- a/src/pages/ManualInvoicesPage.jsx +++ b/src/pages/ManualInvoicesPage.jsx @@ -400,6 +400,7 @@ export function ManualInvoicesPage() { onClick={() => generateGroupedInvoices({ type: 'semestrial' }).then((response) => { toast.success(response.data.message) + refetchInvoices() }) } > @@ -411,6 +412,7 @@ export function ManualInvoicesPage() { onClick={() => generateGroupedInvoices({ type: 'annual' }).then((response) => { toast.success(response.data.message) + refetchInvoices() }) } >