Added Statement Description to Allocations
This commit is contained in:
@@ -144,6 +144,7 @@ const selectAccount = (id) => {
|
|||||||
const manualAllocationSum = ref(itemInfo.value.amount || 0)
|
const manualAllocationSum = ref(itemInfo.value.amount || 0)
|
||||||
const allocationDescription = ref("")
|
const allocationDescription = ref("")
|
||||||
const showMoreWithoutRecipe = ref(false)
|
const showMoreWithoutRecipe = ref(false)
|
||||||
|
const showMoreText = ref(false)
|
||||||
|
|
||||||
const saveAllocation = async (allocation) => {
|
const saveAllocation = async (allocation) => {
|
||||||
|
|
||||||
@@ -392,7 +393,15 @@ const archiveStatement = async () => {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
{{itemInfo.text}}
|
<UButton
|
||||||
|
class="mt-3"
|
||||||
|
@click="showMoreText = !showMoreText"
|
||||||
|
variant="outline"
|
||||||
|
>{{ showMoreText ? "Weniger anzeigen" : "Mehr anzeigen" }}</UButton>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<p>{{showMoreText ? itemInfo.text : itemInfo.text.substring(0,200)}}</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -418,7 +427,7 @@ const archiveStatement = async () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="scrollList mt-3 px-2 pb-3" style="height: 45vh">
|
<div class="scrollList mt-3 px-2 pb-3" style="height: 35vh">
|
||||||
<UDivider>Vorhandene Buchungen</UDivider>
|
<UDivider>Vorhandene Buchungen</UDivider>
|
||||||
|
|
||||||
<UCard
|
<UCard
|
||||||
@@ -431,11 +440,13 @@ const archiveStatement = async () => {
|
|||||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<p class="font-bold">Beschreibung:</p>
|
||||||
|
<p>{{item.description}}</p>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-x-mark"
|
icon="i-heroicons-x-mark"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="rose"
|
color="rose"
|
||||||
class="mr-3"
|
class="mr-3 mt-3"
|
||||||
@click="removeAllocation(item.id)"
|
@click="removeAllocation(item.id)"
|
||||||
/>
|
/>
|
||||||
</UCard>
|
</UCard>
|
||||||
@@ -449,11 +460,13 @@ const archiveStatement = async () => {
|
|||||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<p class="font-bold">Beschreibung:</p>
|
||||||
|
<p>{{item.description}}</p>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-x-mark"
|
icon="i-heroicons-x-mark"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="rose"
|
color="rose"
|
||||||
class="mr-3"
|
class="mr-3 mt-3"
|
||||||
@click="removeAllocation(item.id)"
|
@click="removeAllocation(item.id)"
|
||||||
/>
|
/>
|
||||||
</UCard>
|
</UCard>
|
||||||
@@ -467,11 +480,13 @@ const archiveStatement = async () => {
|
|||||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<p class="font-bold">Beschreibung:</p>
|
||||||
|
<p>{{item.description}}</p>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-x-mark"
|
icon="i-heroicons-x-mark"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="rose"
|
color="rose"
|
||||||
class="mr-3"
|
class="mr-3 mt-3"
|
||||||
@click="removeAllocation(item.id)"
|
@click="removeAllocation(item.id)"
|
||||||
/>
|
/>
|
||||||
</UCard>
|
</UCard>
|
||||||
@@ -485,11 +500,13 @@ const archiveStatement = async () => {
|
|||||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<p class="font-bold">Beschreibung:</p>
|
||||||
|
<p>{{item.description}}</p>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-x-mark"
|
icon="i-heroicons-x-mark"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="rose"
|
color="rose"
|
||||||
class="mr-3"
|
class="mr-3 mt-3"
|
||||||
@click="removeAllocation(item.id)"
|
@click="removeAllocation(item.id)"
|
||||||
/>
|
/>
|
||||||
</UCard>
|
</UCard>
|
||||||
@@ -503,11 +520,13 @@ const archiveStatement = async () => {
|
|||||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<p class="font-bold">Beschreibung:</p>
|
||||||
|
<p>{{item.description}}</p>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-x-mark"
|
icon="i-heroicons-x-mark"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="rose"
|
color="rose"
|
||||||
class="mr-3"
|
class="mr-3 mt-3"
|
||||||
@click="removeAllocation(item.id)"
|
@click="removeAllocation(item.id)"
|
||||||
/>
|
/>
|
||||||
</UCard>
|
</UCard>
|
||||||
@@ -521,11 +540,13 @@ const archiveStatement = async () => {
|
|||||||
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
<span class="font-semibold text-nowrap">{{displayCurrency(item.amount)}}</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
<p class="font-bold">Beschreibung:</p>
|
||||||
|
<p>{{item.description}}</p>
|
||||||
<UButton
|
<UButton
|
||||||
icon="i-heroicons-x-mark"
|
icon="i-heroicons-x-mark"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="rose"
|
color="rose"
|
||||||
class="mr-3"
|
class="mr-3 mt-3"
|
||||||
@click="removeAllocation(item.id)"
|
@click="removeAllocation(item.id)"
|
||||||
/>
|
/>
|
||||||
</UCard>
|
</UCard>
|
||||||
|
|||||||
Reference in New Issue
Block a user