-
Betrag: {{String(selectedStatement.amount.toFixed(2)).replace(".",",")}} €
-
Buchungsdatum: {{dayjs(selectedStatement.date).format("DD.MM.YYYY")}}
-
Werstellungsdatum: {{dayjs(selectedStatement.valueDate).format("DD.MM.YYYY")}}
-
Partner: {{selectedStatement.amount > 0 ? selectedStatement.debName : selectedStatement.credName}}
-
Partner IBAN: {{selectedStatement.amount > 0 ? selectedStatement.debIban : selectedStatement.credIban}}
-
Konto: {{selectedStatement.account}}
-
Beschreibung:
{{selectedStatement.text}}
+ {{selectedStatement.id}}
+
+
+
+
Betrag: {{String(selectedStatement.amount.toFixed(2)).replace(".",",")}} €
+
Buchungsdatum: {{dayjs(selectedStatement.date).format("DD.MM.YYYY")}}
+
Werstellungsdatum: {{dayjs(selectedStatement.valueDate).format("DD.MM.YYYY")}}
+
Partner: {{selectedStatement.amount > 0 ? selectedStatement.debName : selectedStatement.credName}}
+
Partner IBAN: {{selectedStatement.amount > 0 ? selectedStatement.debIban : selectedStatement.credIban}}
+
Konto: {{selectedStatement.account}}
+
Beschreibung:
{{selectedStatement.text}}
+
+
+
+
+
+ {{document.documentNumber ||document.reference}}
+
+
+
-
+
+
+
+
+
+
+
-
+
diff --git a/pages/banking/statements/[mode]/[[id]].vue b/pages/banking/statements/[mode]/[[id]].vue
new file mode 100644
index 0000000..e6506f1
--- /dev/null
+++ b/pages/banking/statements/[mode]/[[id]].vue
@@ -0,0 +1,278 @@
+
+
+
+
+
+
+ Kontobewegungen
+
+
+
+ Kontobewegung bearbeiten
+
+
+
+ Speichern
+
+
+
+
+
+ Gebucht
+
+
+ Offen
+
+
+
+
+
+
+
+
+
+ {{itemInfo.debName}}
+
+
+ {{itemInfo.credName}}
+
+
+
+ {{itemInfo.amount.toFixed(2).replace(".",",")}} {{itemInfo.currency}}
+ {{itemInfo.amount.toFixed(2).replace(".",",")}} {{itemInfo.currency}}
+ {{itemInfo.amount.toFixed(2).replace(".",",")}} {{itemInfo.currency}}
+
+
+
+
+
+ |
+ Buchungsdatum:
+ |
+
+ {{dayjs(itemInfo.date).format("DD.MM.YYYY")}}
+ |
+
+
+ |
+ Wertstellungsdatum:
+ |
+
+ {{dayjs(itemInfo.valueDate).format("DD.MM.YYYY")}}
+ |
+
+
+ |
+ Partner:
+ |
+
+ {{itemInfo.amount > 0 ? itemInfo.debName : itemInfo.credName}}
+ |
+
+
+ |
+ Partner IBAN:
+ |
+
+ {{itemInfo.amount > 0 ? separateIBAN(itemInfo.debIban) : separateIBAN(itemInfo.credIban)}}
+ |
+
+
+ |
+ Konto:
+ |
+
+ {{dataStore.getBankAccountById(itemInfo.account) ? dataStore.getBankAccountById(itemInfo.account).name || separateIBAN(dataStore.getBankAccountById(itemInfo.account).iban) : ""}}
+ |
+
+
+ |
+ Verknüpftes Dokument:
+ |
+
+ {{dataStore.createddocuments.find(i => i.id === itemInfo.createdDocument).documentNumber}}
+ {{dataStore.getIncomingInvoiceById(itemInfo.incomingInvoice).reference}}
+ |
+
+
+ |
+ Beschreibung:
+ |
+
+
+ |
+ {{itemInfo.text}}
+ |
+
+
+
+
+
+
+
+
+
+ {{dataStore.getCustomerById(document.customer).name}} - {{document.documentNumber}}
+ {{displayCurrency(getDocumentSum(document))}}
+
+
+
+
+
+
+
+
+
+
+ {{dataStore.getVendorById(invoice.vendor).name}} - {{invoice.reference}}
+ -{{displayCurrency(getInvoiceSum(invoice))}}
+
+
+
+
+ | Belegdatum: |
+ {{dayjs(invoice.date).format("DD.MM.YYYY")}} |
+
+
+ | Fälligkeitsdatum: |
+ {{dayjs(invoice.dueDate).format("DD.MM.YYYY")}} |
+
+
+ | Beschreibung: |
+
+
+ | {{invoice.description}} |
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/events/index.vue b/pages/events/index.vue
index b1200cd..310c377 100644
--- a/pages/events/index.vue
+++ b/pages/events/index.vue
@@ -70,7 +70,7 @@ defineShortcuts({
document.getElementById("searchinput").focus()
},
'+': () => {
- router.push("/events/edit")
+ router.push("/events/[mode]")
}
})
diff --git a/pages/incomingInvoices/index.vue b/pages/incomingInvoices/index.vue
index 8fc34ad..c2f2df9 100644
--- a/pages/incomingInvoices/index.vue
+++ b/pages/incomingInvoices/index.vue
@@ -11,7 +11,7 @@ defineShortcuts({
document.getElementById("searchinput").focus()
},
'+': () => {
- router.push("/incomingInvoices/edit")
+ router.push("/incomingInvoices/[mode]")
}
})
diff --git a/pages/inventory/index.vue b/pages/inventory/index.vue
index ac2daed..5021140 100644
--- a/pages/inventory/index.vue
+++ b/pages/inventory/index.vue
@@ -10,7 +10,7 @@ const mode = ref("incoming")
const toast = useToast()
const inventoryChangeData = ref({
- productId: "",
+ productId: null,
sourceSpaceId: null,
sourceProjectId: null,
destinationSpaceId: null,
@@ -18,6 +18,17 @@ const inventoryChangeData = ref({
quantity: 1
})
+const resetInput = () => {
+ inventoryChangeData.value = {
+ productId: null,
+ sourceSpaceId: null,
+ sourceProjectId: null,
+ destinationSpaceId: null,
+ destinationProjectId: null,
+ quantity: 1
+ }
+}
+
const createMovement = async () => {
let movements = []
@@ -164,39 +175,61 @@ const processBarcodeInput = () => {
+
+
+
+ Abbrechen
+
+
+ Bestätigen
+
-
-
- Wareneingang
- Warenausgang
- Umlagern
-
+
+
+
+
+
+ Wareneingang
+ Warenausgang
+ Umlagern
+
-
+
-
+
{
/>
-
+
+ -->
-
-
-
-
-
- {{dataStore.spaces.find(space => space.id === inventoryChangeData.sourceSpaceId) ? dataStore.spaces.find(space => space.id === inventoryChangeData.sourceSpaceId).description : "Kein Lagerplatz ausgewählt"}}
-
-
-
-
-
-
- {{dataStore.getProjectById(inventoryChangeData.sourceProjectId) ? dataStore.getProjectById(inventoryChangeData.sourceProjectId).name : "Kein Projekt ausgewählt"}}
-
-
-
-
-
-
-
-
-
- {{dataStore.products.find(product => product.id === inventoryChangeData.productId) ? dataStore.products.find(product => product.id === inventoryChangeData.productId).name : "Bitte Artikel auswählen"}}
-
-
-
-
-
-
-
-
-
- {{dataStore.spaces.find(space => space.id === inventoryChangeData.destinationSpaceId) ? dataStore.spaces.find(space => space.id === inventoryChangeData.destinationSpaceId).description : "Kein Lagerplatz ausgewählt"}}
-
-
-
-
-
-
- {{dataStore.getProjectById(inventoryChangeData.destinationProjectId) ? dataStore.getProjectById(inventoryChangeData.destinationProjectId).name : "Kein Projekt ausgewählt"}}
-
-
-
-
-
-
-
-
-
-
- Bestätigen
-
+
+
+
+ {{dataStore.spaces.find(space => space.id === inventoryChangeData.sourceSpaceId) ? dataStore.spaces.find(space => space.id === inventoryChangeData.sourceSpaceId).description : "Kein Lagerplatz ausgewählt"}}
+
+
+
+
+
+
+ {{dataStore.getProjectById(inventoryChangeData.sourceProjectId) ? dataStore.getProjectById(inventoryChangeData.sourceProjectId).name : "Kein Projekt ausgewählt"}}
+
+
+
+
+
+
+
+ {{dataStore.products.find(product => product.id === inventoryChangeData.productId) ? dataStore.products.find(product => product.id === inventoryChangeData.productId).name : "Bitte Artikel auswählen"}}
+
+
+
+
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/products/[mode]/[[id]].vue b/pages/products/[mode]/[[id]].vue
index 442a199..d40320b 100644
--- a/pages/products/[mode]/[[id]].vue
+++ b/pages/products/[mode]/[[id]].vue
@@ -44,7 +44,25 @@ setupPage()
-
+
+
+
+ Artikel
+
+
+
+ {{currentItem ? `Artikel: ${currentItem.name}` : (mode === 'create' ? 'Artikel erstellen' : 'Artikel bearbeiten')}}
+
+
+
+
@@ -168,7 +193,7 @@ setupPage()
multiple
>
- {{itemInfo.tags.join(", ")}}
+ {{itemInfo.tags.length > 0 ? itemInfo.tags.join(", ") : "Keine Tags ausgewählt"}}
@@ -199,6 +224,13 @@ setupPage()
+
+
+
diff --git a/pages/products/index.vue b/pages/products/index.vue
index cb76d20..efe59d1 100644
--- a/pages/products/index.vue
+++ b/pages/products/index.vue
@@ -20,6 +20,19 @@
+
+
+
+ Tags
+
+
+
templateColumns.filter((column) => selectedColumns.value.includes(column)))
+const templateTags = computed(() => {
+ let temp = []
+
+ dataStore.products.forEach(row => {
+ row.tags.forEach(tag => {
+ if(!temp.includes(tag)) temp.push(tag)
+ })
+ })
+
+ return temp
+
+})
+const selectedTags = ref(templateTags.value)
+
+
const searchString = ref('')
const filteredRows = computed(() => {
+ let items = dataStore.products
+
+ items = items.filter(i => i.tags.some(x => selectedTags.value.includes(x)) || i.tags.length === 0)
+
if(!searchString.value) {
- return dataStore.products
+ return items
}
- return dataStore.products.filter(product => {
+ return items.filter(product => {
return Object.values(product).some((value) => {
return String(value).toLowerCase().includes(searchString.value.toLowerCase())
})
@@ -136,6 +168,7 @@ const filteredRows = computed(() => {
})
+