Added Sorting and Display Rendering
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user