Added Sorting and Display Rendering

This commit is contained in:
2025-06-26 11:35:17 +02:00
parent 1264b987fe
commit 583ca15dcc

View File

@@ -45,7 +45,7 @@ const items = ref([])
const selectedItem = ref(0) const selectedItem = ref(0)
const setupPage = async () => { const setupPage = async () => {
items.value = await useSupabaseSelect("incominginvoices","*, vendor(id,name), statementallocations(id,amount)") items.value = await useSupabaseSelect("incominginvoices","*, vendor(id,name), statementallocations(id,amount)","created_at",false)
} }
setupPage() setupPage()
@@ -179,7 +179,7 @@ const isPaid = (item) => {
{{displayCurrency(sum.getIncomingInvoiceSum(row))}} {{displayCurrency(sum.getIncomingInvoiceSum(row))}}
</template> </template>
<template #dueDate-data="{row}"> <template #dueDate-data="{row}">
{{dayjs(row.dueDate).format("DD.MM.YYYY")}} <span v-if="row.dueDate">{{dayjs(row.dueDate).format("DD.MM.YYYY")}}</span>
</template> </template>
<template #paid-data="{row}"> <template #paid-data="{row}">
<span v-if="isPaid(row)" class="text-primary-500">Bezahlt</span> <span v-if="isPaid(row)" class="text-primary-500">Bezahlt</span>