Added Archived Showing,
Fixed Archived Filtering
This commit is contained in:
@@ -126,13 +126,20 @@ const items = ref([])
|
|||||||
const selectedItem = ref(0)
|
const selectedItem = ref(0)
|
||||||
|
|
||||||
const setupPage = async () => {
|
const setupPage = async () => {
|
||||||
items.value = await useEntities("createddocuments").select("*, customer(id,name)","documentDate")
|
items.value = await useEntities("createddocuments").select("*, customer(id,name)","documentDate",undefined,true)
|
||||||
}
|
}
|
||||||
|
|
||||||
const searchString = ref("")
|
const searchString = ref("")
|
||||||
const filteredRows = computed(() => {
|
const filteredRows = computed(() => {
|
||||||
|
|
||||||
let temp = items.value.filter(i => i.type === "serialInvoices")
|
|
||||||
|
|
||||||
|
let temp = items.value.filter(i => i.type === "serialInvoices").map(i => {
|
||||||
|
return {
|
||||||
|
...i,
|
||||||
|
class: i.archived ? 'bg-red-500/50 dark:bg-red-400/50' : null
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
/*if(showDrafts.value === true) {
|
/*if(showDrafts.value === true) {
|
||||||
temp = temp.filter(i => i.state === "Entwurf")
|
temp = temp.filter(i => i.state === "Entwurf")
|
||||||
|
|||||||
Reference in New Issue
Block a user