added Filters and templatecolumns in datatypes
This commit is contained in:
@@ -1552,6 +1552,19 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
label: "Dokumente",
|
label: "Dokumente",
|
||||||
labelSingle: "Dokument",
|
labelSingle: "Dokument",
|
||||||
supabaseSelectWithInformation: "*, files(*), statementallocations(*)",
|
supabaseSelectWithInformation: "*, files(*), statementallocations(*)",
|
||||||
|
filters: [
|
||||||
|
{
|
||||||
|
name: "Archivierte ausblenden",
|
||||||
|
default: true,
|
||||||
|
"filterFunction": function (row) {
|
||||||
|
if(!row.archived) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
files: {
|
files: {
|
||||||
isArchivable: true,
|
isArchivable: true,
|
||||||
@@ -1568,7 +1581,61 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
incominginvoices: {
|
incominginvoices: {
|
||||||
label: "Eingangsrechnungen",
|
label: "Eingangsrechnungen",
|
||||||
labelSingle: "Eingangsrechnung",
|
labelSingle: "Eingangsrechnung",
|
||||||
redirect:true
|
redirect:true,
|
||||||
|
filters: [
|
||||||
|
{
|
||||||
|
name: "Archivierte ausblenden",
|
||||||
|
default: true,
|
||||||
|
"filterFunction": function (row) {
|
||||||
|
if(!row.archived) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
templateColumns: [
|
||||||
|
{
|
||||||
|
key: 'reference',
|
||||||
|
label: "Referenz:",
|
||||||
|
sortable: true,
|
||||||
|
}, {
|
||||||
|
key: 'state',
|
||||||
|
label: "Status:"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "date",
|
||||||
|
label: "Datum",
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "vendor",
|
||||||
|
label: "Lieferant",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "amount",
|
||||||
|
label: "Betrag",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "dueDate",
|
||||||
|
label: "Fälligkeitsdatum",
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "paid",
|
||||||
|
label: "Bezahlt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "paymentType",
|
||||||
|
label: "Zahlart",
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "description",
|
||||||
|
label: "Beschreibung"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
inventoryitems: {
|
inventoryitems: {
|
||||||
isArchivable: true,
|
isArchivable: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user