Introduced OwnAccounts
Introduced CostCentres Rebuild Added EntityModalButtons to IncomingInvoice Create
This commit is contained in:
128
stores/data.js
128
stores/data.js
@@ -1957,6 +1957,134 @@ export const useDataStore = defineStore('data', () => {
|
||||
}
|
||||
]
|
||||
},
|
||||
costcentres: {
|
||||
isArchivable: true,
|
||||
label: "Kostenstellen",
|
||||
labelSingle: "Kostenstelle",
|
||||
isStandardEntity: true,
|
||||
redirect:true,
|
||||
numberRangeHolder: "number",
|
||||
historyItemHolder: "costcentre",
|
||||
supabaseSortColumn: "number",
|
||||
supabaseSelectWithInformation: "*, project(*), vehicle(*), inventoryitem(*)",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
default: true,
|
||||
"filterFunction": function (row) {
|
||||
if(!row.archived) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}],
|
||||
templateColumns: [
|
||||
{
|
||||
key: 'number',
|
||||
label: "Nummer",
|
||||
inputIsNumberRange: true,
|
||||
inputType: "text"
|
||||
}, {
|
||||
key: "name",
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text",
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
label: "Beschreibung",
|
||||
inputType: "textarea"
|
||||
},
|
||||
{
|
||||
key: "vehicle",
|
||||
label: "Fahrzeug",
|
||||
component: vehicle,
|
||||
inputType: "select",
|
||||
selectDataType: "vehicles",
|
||||
selectOptionAttribute: "licensePlate",
|
||||
selectSearchAttributes: ['licensePlate'],
|
||||
},
|
||||
{
|
||||
key: "inventoryitem",
|
||||
label: "Inventarartikel",
|
||||
inputType: "select",
|
||||
selectDataType: "inventoryitems",
|
||||
selectOptionAttribute: "name",
|
||||
selectSearchAttributes: ['name'],
|
||||
},
|
||||
{
|
||||
key: "project",
|
||||
label: "Projekt",
|
||||
component: project,
|
||||
inputType: "select",
|
||||
selectDataType: "projects",
|
||||
selectOptionAttribute: "name",
|
||||
selectSearchAttributes: ['name'],
|
||||
},
|
||||
{
|
||||
key: "profiles",
|
||||
label: "Berechtigte Benutzer",
|
||||
inputType: "select",
|
||||
selectDataType: "profiles",
|
||||
selectOptionAttribute: "fullName",
|
||||
selectSearchAttributes: ['fullName'],
|
||||
selectMultiple: true,
|
||||
component: profiles
|
||||
},
|
||||
],
|
||||
showTabs: [{label: 'Informationen'},{label: 'Auswertung Kostenstelle'}]
|
||||
},
|
||||
ownaccounts: {
|
||||
isArchivable: true,
|
||||
label: "zusätzliche Buchungskonten",
|
||||
labelSingle: "zusätzliches Buchungskonto",
|
||||
isStandardEntity: true,
|
||||
redirect:true,
|
||||
historyItemHolder: "ownaccount",
|
||||
supabaseSortColumn: "number",
|
||||
supabaseSelectWithInformation: "*",
|
||||
filters: [{
|
||||
name: "Archivierte ausblenden",
|
||||
default: true,
|
||||
"filterFunction": function (row) {
|
||||
if(!row.archived) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
}
|
||||
}],
|
||||
templateColumns: [
|
||||
{
|
||||
key: 'number',
|
||||
label: "Nummer",
|
||||
inputType: "text"
|
||||
}, {
|
||||
key: "name",
|
||||
label: "Name",
|
||||
required: true,
|
||||
title: true,
|
||||
inputType: "text",
|
||||
},
|
||||
{
|
||||
key: "description",
|
||||
label: "Beschreibung",
|
||||
inputType: "textarea"
|
||||
},
|
||||
{
|
||||
key: "profiles",
|
||||
label: "Berechtigte Benutzer",
|
||||
inputType: "select",
|
||||
selectDataType: "profiles",
|
||||
selectOptionAttribute: "fullName",
|
||||
selectSearchAttributes: ['fullName'],
|
||||
selectMultiple: true,
|
||||
component: profiles
|
||||
},
|
||||
],
|
||||
showTabs: [{label: 'Informationen'}]
|
||||
},
|
||||
}
|
||||
|
||||
const documentTypesForCreation = ref({
|
||||
|
||||
Reference in New Issue
Block a user