3.0.0 #220

Merged
flfeders merged 676 commits from dev into main 2026-09-20 16:10:48 +00:00
Showing only changes of commit d27e437ba6 - Show all commits

View File

@@ -18,7 +18,10 @@ defineShortcuts({
'Enter': { 'Enter': {
usingInput: true, usingInput: true,
handler: () => { handler: () => {
router.push(`/incomingInvoices/show/${filteredRows.value[selectedItem.value].id}`) const invoice = filteredRows.value[selectedItem.value]
if (invoice) {
selectIncomingInvoice(invoice)
}
} }
}, },
'arrowdown': () => { 'arrowdown': () => {
@@ -146,13 +149,11 @@ const isPaid = (item) => {
} }
const selectIncomingInvoice = (invoice) => { const selectIncomingInvoice = (invoice) => {
if(invoice.state === "Vorbereitet" ) { if (invoice.state === "Gebucht") {
router.push(`/incomingInvoices/edit/${invoice.id}`)
} else {
router.push(`/incomingInvoices/show/${invoice.id}`) router.push(`/incomingInvoices/show/${invoice.id}`)
} else {
router.push(`/incomingInvoices/edit/${invoice.id}`)
} }
} }
@@ -291,4 +292,4 @@ const selectIncomingInvoice = (invoice) => {
<style scoped> <style scoped>
</style> </style>