diff --git a/components/DocumentUploadModal.vue b/components/DocumentUploadModal.vue index b3d24b2..482db80 100644 --- a/components/DocumentUploadModal.vue +++ b/components/DocumentUploadModal.vue @@ -1,4 +1,6 @@ - \ No newline at end of file diff --git a/components/EntityShowSubCreatedDocuments.vue b/components/EntityShowSubCreatedDocuments.vue index 4aba719..3c5d26f 100644 --- a/components/EntityShowSubCreatedDocuments.vue +++ b/components/EntityShowSubCreatedDocuments.vue @@ -107,7 +107,6 @@ const getAvailableQueryStringData = (keys) => { returnString += `${key}=${value}` } else { returnString += `&${key}=${value}` - } } diff --git a/components/StaffTimeEntryModal.vue b/components/StaffTimeEntryModal.vue index e08ff26..dcf370f 100644 --- a/components/StaffTimeEntryModal.vue +++ b/components/StaffTimeEntryModal.vue @@ -1,206 +1,170 @@ - - + \ No newline at end of file diff --git a/components/columnRenderings/address.vue b/components/columnRenderings/address.vue index d4528c7..4747bcd 100644 --- a/components/columnRenderings/address.vue +++ b/components/columnRenderings/address.vue @@ -9,6 +9,7 @@ const props = defineProps({ - + --> { createddocuments.value = (await useEntities("createddocuments").select("*, statementallocations(*), customer(id,name)")) const documents = createddocuments.value.filter(i => i.type === "invoices" ||i.type === "advanceInvoices") - const incominginvoices = (await useEntities("incominginvoices").select("*, statementallocations(*), vendor(id,name)")).filter(i => i.state === "Gebucht") + incominginvoices.value = (await useEntities("incominginvoices").select("*, statementallocations(*), vendor(id,name)")).filter(i => i.state === "Gebucht") accounts.value = (await useEntities("accounts").selectSpecial("*","number",true)) ownaccounts.value = (await useEntities("ownaccounts").select()) @@ -66,7 +66,7 @@ const setup = async () => { console.log(openDocuments.value) allocatedDocuments.value = documents.filter(i => i.statementallocations.find(x => x.bankstatement === itemInfo.value.id)) - allocatedIncomingInvoices.value = incominginvoices.filter(i => i.statementallocations.find(x => x.bankstatement === itemInfo.value.id)) + allocatedIncomingInvoices.value = incominginvoices.value.filter(i => i.statementallocations.find(x => x.bankstatement === itemInfo.value.id)) console.log(allocatedDocuments.value) console.log(allocatedIncomingInvoices.value) openIncomingInvoices.value = (await useEntities("incominginvoices").select("*, statementallocations(*), vendor(*)")).filter(i => !i.archived && i.statementallocations.reduce((n,{amount}) => n + amount, 0).toFixed(2) !== getInvoiceSum(i,false)) @@ -177,7 +177,14 @@ const removeAllocation = async (allocationId) => { await setup() } -const searchString = ref("") +const searchString = ref(tempStore.searchStrings["bankstatementsedit"] ||'') + +const clearSearchString = () => { + searchString.value = '' + tempStore.clearSearchString("bankstatementsedit") + +} + const filteredDocuments = computed(() => { @@ -509,11 +516,11 @@ const archiveStatement = async () => { @@ -529,11 +536,11 @@ const archiveStatement = async () => { @@ -546,7 +553,15 @@ const archiveStatement = async () => { class="mr-3 mt-3" @click="removeAllocation(item.id)" /> + + @@ -780,6 +795,7 @@ const archiveStatement = async () => { placeholder="Suche..." class="hidden lg:block w-full mr-1" @keydown.esc="$event.target.blur()" + @change="tempStore.modifySearchString('bankstatementsedit',searchString)" >