Add route and logic to create a new invoice directly from the sidebar

This commit is contained in:
2025-10-22 16:52:16 +02:00
parent 914a085e25
commit a1c56ad5a5
3 changed files with 11 additions and 3 deletions
+4
View File
@@ -39,6 +39,10 @@ onMounted(async () => {
customersData.value = customerResponse.data as Customer[]
searchField.value = document.getElementById('search')
let queryString = window.location.search
let params = new URLSearchParams(queryString)
if (params.get('action') == 'new') showDetail(newInvoice())
})
watch(invoicesData, () => {