Fixed Calendar & Timeline
Fixed AbsenceRequest Manual Selects
This commit is contained in:
@@ -436,7 +436,12 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "approved",
|
||||
label: "Genehmigt",
|
||||
inputType: "select",
|
||||
selectManualOptions: ["Offen","Genehmigt", "Abgelehnt"]
|
||||
selectValueAttribute: "label",
|
||||
selectManualOptions: [
|
||||
{label:"Offen"},
|
||||
{label:"Genehmigt"},
|
||||
{label:"Abgelehnt"}
|
||||
]
|
||||
},{
|
||||
key: "name",
|
||||
label: "Name",
|
||||
@@ -455,16 +460,19 @@ export const useDataStore = defineStore('data', () => {
|
||||
key: "reason",
|
||||
label: "Grund",
|
||||
inputType: "select",
|
||||
selectManualOptions: ["Elternzeit",
|
||||
"Kind krank - Kinderbetreuung",
|
||||
"Krankheit",
|
||||
"Krankheit 1 Tag (mit Attest)",
|
||||
"Krankheit ab 2. Tag (mit Attest)",
|
||||
"Mutterschutz",
|
||||
"Sonderurlaub (bezahlt)",
|
||||
"Überstundenausgleich",
|
||||
"Unbezahlter Urlaub",
|
||||
"Urlaub"]
|
||||
selectValueAttribute: "label",
|
||||
selectManualOptions: [
|
||||
{label:"Urlaub"},
|
||||
{label:"unbezahlter Urlaub"},
|
||||
{label:"Überstundenausgleich"},
|
||||
{label:"Sonderurlaub(bezahlt)"},
|
||||
{label:"Mutterschutz"},
|
||||
{label:"Krankheit ab 2. Tag (mit Attest)"},
|
||||
{label:"Krankheit 1 Tag (mit Attest)"},
|
||||
{label:"Krankheit"},
|
||||
{label:"Kind krank - Kinderbetreuung"},
|
||||
{label:"Elternzeit"},
|
||||
]
|
||||
},{
|
||||
key: "startDate",
|
||||
label: "Start",
|
||||
@@ -742,7 +750,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
{
|
||||
key: "towingCapacity",
|
||||
label: "Anhängelast",
|
||||
unit: "kG",
|
||||
unit: "Kg",
|
||||
inputType: "number"
|
||||
},
|
||||
{
|
||||
@@ -1109,7 +1117,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
inputColumn: "Anschaffung"
|
||||
},
|
||||
{
|
||||
key: "maunfacturer",
|
||||
key: "manufacturer",
|
||||
label: "Hersteller",
|
||||
inputType: "text",
|
||||
inputColumn: "Anschaffung"
|
||||
@@ -1817,6 +1825,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
name = "Wöchentliche Arbeitszeit"
|
||||
} else if(key === "licensePlate") {
|
||||
name = "Kennzeichen"
|
||||
}else if(key === "tankSize") {
|
||||
name = "Tankvolumen"
|
||||
}else if(key === "towingCapacity") {
|
||||
name = "Anhängelast"
|
||||
}else if(key === "color") {
|
||||
@@ -1973,7 +1983,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
|
||||
await generateHistoryItems(dataType, supabaseData[0])
|
||||
|
||||
if(!["statementallocations", "productcategories", "projecttypes", "checks", "profiles","services"].includes(dataType) ){
|
||||
if(!["statementallocations", "productcategories", "projecttypes", "checks", "profiles","services", "inventoryitems"].includes(dataType) ){
|
||||
await eval( dataType + '.value.push(' + JSON.stringify(...supabaseData) + ')')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user