diff --git a/src/pages/11_credit-note/MainPage.vue b/src/pages/11_credit-note/MainPage.vue index f085a8fa..7b1bf0b7 100644 --- a/src/pages/11_credit-note/MainPage.vue +++ b/src/pages/11_credit-note/MainPage.vue @@ -134,6 +134,11 @@ onMounted(async () => { creditNote.getCreditNoteStats().then((res) => res && (stats.value = res)); getList(); + + window.addEventListener('focus', () => { + creditNote.getCreditNoteStats().then((res) => res && (stats.value = res)); + getList(); + }); }); watch( diff --git a/src/pages/12_debit-note/MainPage.vue b/src/pages/12_debit-note/MainPage.vue index f3d48726..ac012374 100644 --- a/src/pages/12_debit-note/MainPage.vue +++ b/src/pages/12_debit-note/MainPage.vue @@ -143,6 +143,15 @@ onMounted(async () => { }); getList(); + + window.addEventListener('focus', () => { + debitNote.getDebitNoteStats().then((res) => { + if (res) { + stats.value = res; + } + }); + getList(); + }); }); watch(