This commit is contained in:
2024-12-31 18:02:15 +01:00
parent cacdb442ca
commit 4ef7d410f4
10 changed files with 198 additions and 28 deletions

View File

@@ -122,7 +122,7 @@ export const useDataStore = defineStore('data', () => {
numberRangeHolder: "customerNumber",
historyItemHolder: "customer",
supabaseSortColumn: "customerNumber",
supabaseSelectWithInformation: "*, projects(*), plants(*), contracts(*), contacts(*)",
supabaseSelectWithInformation: "*, projects(*), plants(*), contracts(*), contacts(*), createddocuments(*)",
filters: [],
templateColumns: [
{
@@ -228,7 +228,7 @@ export const useDataStore = defineStore('data', () => {
component: profiles
},
],
showTabs: [{label: 'Informationen'},{label: 'Dokumente'},{label: 'Projekte'},{label: 'Objekte'},{label: 'Verträge'}]
showTabs: [{label: 'Informationen'},{label: 'Dokumente'},{label: 'Ausgangsbelege'},{label: 'Projekte'},{label: 'Objekte'},{label: 'Verträge'}]
},
contacts: {
label: "Kontakte",
@@ -307,7 +307,7 @@ export const useDataStore = defineStore('data', () => {
inputType: "text",
},
{
key: "birtday",
key: "birthday",
label: "Geburtstag",
inputType: "date",
},
@@ -593,7 +593,7 @@ export const useDataStore = defineStore('data', () => {
redirect:true,
historyItemHolder: "project",
numberRangeHolder: "projectNumber",
supabaseSelectWithInformation: "*, customer(name), plant(name), projecttype(name, id), tasks(*), documents(*)",
supabaseSelectWithInformation: "*, customer(id,name), plant(id,name), projecttype(name, id), tasks(*), documents(*), createddocuments(*)",
supabaseSortColumn: "projectNumber",
filters: [
{
@@ -642,13 +642,7 @@ export const useDataStore = defineStore('data', () => {
selectDataType: "customers",
selectOptionAttribute: "name",
selectSearchAttributes: ['name'],
},
{
key: "notes",
label: "Notizen",
inputType: "textarea"
},
{
},{
key: "plant",
label: "Objekt",
component: plant,
@@ -656,6 +650,10 @@ export const useDataStore = defineStore('data', () => {
selectDataType: "plants",
selectOptionAttribute: "name",
selectSearchAttributes: ['name'],
},{
key: "notes",
label: "Notizen",
inputType: "textarea"
},
{
key: "profiles",
@@ -681,6 +679,8 @@ export const useDataStore = defineStore('data', () => {
},{
key: "documents",
label: "Dokumente"
},{
label: "Ausgangsbelege"
}/*,{
key: "timetracking",
label: "Zeiterfassung"
@@ -1260,10 +1260,12 @@ export const useDataStore = defineStore('data', () => {
{
key: "startDate",
label: "Start",
inputType: "datetime",
},
{
key: "endDate",
label: "Ende"
label: "Ende",
inputType: "datetime",
},/*{
key: "eventtype",
label: "Typ",