BETA for new DB

This commit is contained in:
2025-12-07 22:17:57 +01:00
parent 253b04ec0d
commit 9bfb880f7b
3 changed files with 73 additions and 39 deletions

View File

@@ -950,7 +950,7 @@ export const useDataStore = defineStore('data', () => {
selectSearchAttributes: ['name'],
},
{
key: "purchasePrice",
key: "purchase_price",
label: "Einkaufspreis",
component: purchasePrice,
inputType: "number",
@@ -963,7 +963,7 @@ export const useDataStore = defineStore('data', () => {
}
}
},{
key: "markupPercentage",
key: "markup_percentage",
label: "Aufschlag",
inputType: "number",
inputTrailing: "%",
@@ -977,7 +977,7 @@ export const useDataStore = defineStore('data', () => {
}
}
},{
key: "sellingPrice",
key: "selling_price",
label: "Verkaufpreispreis",
required: true,
component: sellingPrice,
@@ -991,7 +991,7 @@ export const useDataStore = defineStore('data', () => {
}
}
},{
key: "taxPercentage",
key: "tax_percentage",
label: "Umsatzsteuer",
inputType: "select",
selectOptionAttribute: "label",
@@ -1194,7 +1194,7 @@ export const useDataStore = defineStore('data', () => {
inputType: "bool",
sortable: true
},{
key: 'licensePlate',
key: 'license_plate',
label: "Kennzeichen",
required: true,
inputType: "text",
@@ -1219,18 +1219,18 @@ export const useDataStore = defineStore('data', () => {
component: driver
},*/
{
key: "tankSize",
key: "tank_size",
label: "Tankvolumen",
unit: "L",
inputType: "number"
},
{
key: "buildYear",
key: "build_year",
label: "Baujahr",
inputType: "number"
},
{
key: "towingCapacity",
key: "towing_capacity",
label: "Anhängelast",
unit: "Kg",
inputType: "number",
@@ -1242,7 +1242,7 @@ export const useDataStore = defineStore('data', () => {
inputType: "text"
},
{
key: "powerInKW",
key: "power_in_kw",
label: "Leistung",
unit: "kW",
inputType: "number",
@@ -1459,7 +1459,7 @@ export const useDataStore = defineStore('data', () => {
sortable: true
},
{
key: 'spaceNumber',
key: 'space_number',
label: "Lagerplatznr.",
inputType: "text",
inputIsNumberRange: true,
@@ -1483,7 +1483,7 @@ export const useDataStore = defineStore('data', () => {
sortable: true
},
{
key: "parentSpace",
key: "parent_space",
label: "Übergeordneter Lagerplatz",
inputType: "select",
selectDataType: "spaces",
@@ -1492,21 +1492,21 @@ export const useDataStore = defineStore('data', () => {
inputColumn: "Allgemeines"
},
{
key: "infoData.streetNumber",
key: "info_data.streetNumber",
label: "Straße + Hausnummer",
inputType: "text",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "infoData.special",
key: "info_data.special",
label: "Adresszusatz",
inputType: "text",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "infoData.zip",
key: "info_data.zip",
label: "Postleitzahl",
inputType: "number",
disabledInTable: true,
@@ -1518,14 +1518,14 @@ export const useDataStore = defineStore('data', () => {
},
},
{
key: "infoData.city",
key: "info_data.city",
label: "Stadt",
inputType: "text",
disabledInTable: true,
inputColumn: "Ort"
},
{
key: "infoData.country",
key: "info_data.country",
label: "Land",
inputType: "select",
selectDataType: "countrys",
@@ -1574,6 +1574,12 @@ export const useDataStore = defineStore('data', () => {
}
}
}
],
templateColumns: [
{
key: "customer",
distinct: true
}
]
},
tickets: {
@@ -2192,8 +2198,8 @@ export const useDataStore = defineStore('data', () => {
label: "Fahrzeuge",
inputType: "select",
selectDataType: "vehicles",
selectOptionAttribute: "licensePlate",
selectSearchAttributes: ['licensePlate'],
selectOptionAttribute: "license_plate",
selectSearchAttributes: ['license_plate'],
selectMultiple: true,
component: vehiclesWithLoad,
},{