Merge branch 'beta' into dev
This commit is contained in:
@@ -355,6 +355,7 @@ const moveFile = async () => {
|
||||
<UButton
|
||||
@click="moveFile"
|
||||
variant="outline"
|
||||
:disabled="!folderToMoveTo"
|
||||
>Verschieben</UButton>
|
||||
</InputGroup>
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ const separateIBAN = (input = "") => {
|
||||
const getDocumentSum = (doc,advanceInvoices = []) => {
|
||||
let sum = 0
|
||||
|
||||
console.log(advanceInvoices)
|
||||
//console.log(advanceInvoices)
|
||||
|
||||
doc.rows.forEach(row => {
|
||||
if(row.mode === "normal" || row.mode === "service" || row.mode === "free") {
|
||||
@@ -93,7 +93,7 @@ const getDocumentSum = (doc,advanceInvoices = []) => {
|
||||
}
|
||||
})
|
||||
|
||||
console.log(sum)
|
||||
//console.log(sum)
|
||||
|
||||
if(advanceInvoices.length > 0) {
|
||||
advanceInvoices.forEach(i => {
|
||||
@@ -102,7 +102,7 @@ const getDocumentSum = (doc,advanceInvoices = []) => {
|
||||
})
|
||||
}
|
||||
|
||||
console.log(sum)
|
||||
//console.log(sum)
|
||||
|
||||
|
||||
|
||||
@@ -152,6 +152,9 @@ const selectAccount = (id) => {
|
||||
const manualAllocationSum = ref(itemInfo.value.amount || 0)
|
||||
|
||||
const saveAllocation = async (allocation) => {
|
||||
|
||||
console.log(allocation)
|
||||
|
||||
const {data,error} = await supabase.from("statementallocations").insert({
|
||||
...allocation,
|
||||
tenant: profileStore.currentTenant
|
||||
@@ -376,7 +379,7 @@ setup()
|
||||
</div>
|
||||
|
||||
|
||||
<div class="scrollList mt-3 px-2">
|
||||
<div class="scrollList mt-3 px-2 pb-3" style="height: 45vh">
|
||||
<UDivider>Vorhandene Buchungen</UDivider>
|
||||
|
||||
<UCard
|
||||
@@ -612,7 +615,7 @@ setup()
|
||||
variant="outline"
|
||||
class="mr-3"
|
||||
v-if="!itemInfo.statementallocations.find(i => i.ii_id === item.id)"
|
||||
@click="saveAllocation({ii_id: item.id, bs_id: itemInfo.id, amount: Number(itemInfo.amount)})"
|
||||
@click="saveAllocation({ii_id: item.id, bs_id: itemInfo.id, amount: Number(getInvoiceSum(item))})"
|
||||
/>
|
||||
<UButton
|
||||
variant="outline"
|
||||
|
||||
@@ -426,6 +426,7 @@ const selectAll = () => {
|
||||
<tr>
|
||||
<td>
|
||||
<UCheckbox
|
||||
v-if="renderedFileList.find(i => i.type === 'file')"
|
||||
@change="selectAll"
|
||||
/>
|
||||
</td>
|
||||
@@ -436,6 +437,7 @@ const selectAll = () => {
|
||||
<tr v-for="(entry,index) in renderedFileList">
|
||||
<td>
|
||||
<UCheckbox
|
||||
v-if="entry.type === 'file'"
|
||||
v-model="selectedFiles[entry.id]"
|
||||
/>
|
||||
</td>
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
>
|
||||
<template #right>
|
||||
<UButton
|
||||
@click="editTemplateModalOpen = true"
|
||||
@click="editTemplateModalOpen = true, itemInfo = {}"
|
||||
>
|
||||
+ Erstellen
|
||||
</UButton>
|
||||
@@ -149,7 +149,7 @@
|
||||
>
|
||||
|
||||
<USelectMenu
|
||||
:options="Object.keys(dataStore.documentTypesForCreation).map(i => {
|
||||
:options="Object.keys(dataStore.documentTypesForCreation).filter(i => i !== 'serialInvoices').map(i => {
|
||||
return {
|
||||
label: dataStore.documentTypesForCreation[i].label,
|
||||
key: i
|
||||
|
||||
Reference in New Issue
Block a user