Added Hourrates
This commit is contained in:
@@ -234,6 +234,11 @@ const links = computed(() => {
|
|||||||
to: "/profiles",
|
to: "/profiles",
|
||||||
icon: "i-heroicons-user-group"
|
icon: "i-heroicons-user-group"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Stundensätze",
|
||||||
|
to: "/standardEntity/hourrates",
|
||||||
|
icon: "i-heroicons-user-group"
|
||||||
|
},
|
||||||
... role.checkRight("vehicles") ? [{
|
... role.checkRight("vehicles") ? [{
|
||||||
label: "Fahrzeuge",
|
label: "Fahrzeuge",
|
||||||
to: "/standardEntity/vehicles",
|
to: "/standardEntity/vehicles",
|
||||||
|
|||||||
@@ -258,6 +258,18 @@ export const useRole = () => {
|
|||||||
label: "Dokuemntenboxen erstellen",
|
label: "Dokuemntenboxen erstellen",
|
||||||
parent: "documentboxes"
|
parent: "documentboxes"
|
||||||
},
|
},
|
||||||
|
hourrates: {
|
||||||
|
label: "Stundensätze",
|
||||||
|
showToAllUsers: false
|
||||||
|
},
|
||||||
|
"hourrates-viewAll": {
|
||||||
|
label: "Alle Stundensätze einsehen",
|
||||||
|
parent: "hourrates"
|
||||||
|
},
|
||||||
|
"hourrates-create": {
|
||||||
|
label: "Stundensätze erstellen",
|
||||||
|
parent: "hourrates"
|
||||||
|
},
|
||||||
"inventory": {
|
"inventory": {
|
||||||
label: "Lager",
|
label: "Lager",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1719,6 +1719,52 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
hourrates: {
|
||||||
|
isArchivable: true,
|
||||||
|
label: "Stundensätze",
|
||||||
|
labelSingle: "Stundensatz",
|
||||||
|
isStandardEntity: true,
|
||||||
|
redirect: true,
|
||||||
|
supabaseSelectWithInformation: "*",
|
||||||
|
historyItemHolder: "hourrate",
|
||||||
|
filters: [{
|
||||||
|
name: "Archivierte ausblenden",
|
||||||
|
default: true,
|
||||||
|
"filterFunction": function (row) {
|
||||||
|
if(!row.archived) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
templateColumns: [
|
||||||
|
{
|
||||||
|
key: "name",
|
||||||
|
label: "Name",
|
||||||
|
required: true,
|
||||||
|
title: true,
|
||||||
|
inputType: "text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "purchasePrice",
|
||||||
|
label: "Einkauspreis",
|
||||||
|
inputType: "number",
|
||||||
|
component: purchasePrice,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "sellingPrice",
|
||||||
|
label: "Verkaufspreis",
|
||||||
|
inputType: "number",
|
||||||
|
component: sellingPrice,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
showTabs: [
|
||||||
|
{
|
||||||
|
label: 'Informationen',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
events: {
|
events: {
|
||||||
isArchivable: true,
|
isArchivable: true,
|
||||||
label: "Termine",
|
label: "Termine",
|
||||||
|
|||||||
Reference in New Issue
Block a user