Fixed Invoicing Problem and some other Changes

This commit is contained in:
2024-12-31 16:07:15 +01:00
parent 9a70879778
commit cacdb442ca
5 changed files with 426 additions and 369 deletions

View File

@@ -130,31 +130,26 @@ export const useDataStore = defineStore('data', () => {
label: "Kundennummer",
inputIsNumberRange: true,
inputType: "text"
},
{
}, {
key: "name",
label: "Name",
title: true,
inputType: "text"
},
{
}, {
key: "isCompany",
label: "Firmenkunde",
component: isCompany,
inputType: "bool"
},
{
key: "notes",
label: "Notizen",
inputType: "textarea"
},
{
},{
key: "active",
label: "Aktiv",
component: active,
inputType: "bool"
},
{
}, {
key: "customPaymentDays",
label: "Zahlungsziel in Tagen",
inputType: "number"
}, {
key: "infoData.street",
label: "Straße + Hausnummer",
inputType: "text",
@@ -217,6 +212,11 @@ export const useDataStore = defineStore('data', () => {
label: "USt-Id",
inputType: "text"
},
{
key: "notes",
label: "Notizen",
inputType: "textarea"
},
{
key: "profiles",
label: "Berechtigte Benutzer",
@@ -1189,6 +1189,7 @@ export const useDataStore = defineStore('data', () => {
key: "sellingPriceComposed.worker",
label: "Verkaufspreis Personal pro Einheit",
inputType: "number",
inputTrailing: "EUR",
inputChangeFunction: function (row) {
if(row.sellingPriceComposed.worker) {
row.sellingPriceComposed.total = row.sellingPriceComposed.worker + (row.sellingPriceComposed.material || 0)
@@ -1201,6 +1202,7 @@ export const useDataStore = defineStore('data', () => {
key: "sellingPriceComposed.material",
label: "Verkaufspreis Material pro Einheit",
inputType: "number",
inputTrailing: "EUR",
inputChangeFunction: function (row) {
if(row.sellingPriceComposed.material) {
row.sellingPriceComposed.total = (row.sellingPriceComposed.worker || 0) + row.sellingPriceComposed.material
@@ -1211,8 +1213,9 @@ export const useDataStore = defineStore('data', () => {
},
{
key: "sellingPriceComposed.total",
label: "Verkaufspreis Gesamt",
label: "Verkaufspreis Gesamt pro Einheit",
inputType: "number",
inputTrailing: "EUR",
/*disabledFunction: function (item) {
return item.sellingPriceComposed.worker || item.sellingPriceComposed.material
},*/
@@ -1816,6 +1819,8 @@ export const useDataStore = defineStore('data', () => {
name = "Anhängelast"
}else if(key === "color") {
name = "Farbe"
}else if(key === "customPaymentDays") {
name = "Zahlungsziel in Tagen"
}else if(key === "powerInKW") {
name = "Leistung"
} else if(key === "driver") {
@@ -1979,6 +1984,7 @@ export const useDataStore = defineStore('data', () => {
await router.push(dataTypes[dataType].redirectToList ? `/${dataType}` : `/${dataType}/show/${returnData.id}`)
}
}
return supabaseData
}
}