This commit is contained in:
2026-02-15 13:25:14 +01:00
parent c2901dc0a9
commit 117da523d2
3 changed files with 18 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ export const customers = pgTable(
updatedBy: uuid("updated_by").references(() => authUsers.id),
customPaymentType: text("custom_payment_type"), // ENUM payment_types separat?
customTaxType: text("customTaxType"),
}
)

View File

@@ -475,6 +475,10 @@ const setCustomerData = async (customerId, loadOnlyAdress = false) => {
if (!loadOnlyAdress && customer.customPaymentDays) itemInfo.value.paymentDays = customer.customPaymentDays
if (!loadOnlyAdress && customer.custom_payment_type) itemInfo.value.payment_type = customer.custom_payment_type
if (!loadOnlyAdress) {
itemInfo.value.taxType = customer.customTaxType || "Standard"
setTaxType()
}
if (!loadOnlyAdress && customer.customSurchargePercentage) {
itemInfo.value.customSurchargePercentage = customer.customSurchargePercentage

View File

@@ -310,6 +310,19 @@ export const useDataStore = defineStore('data', () => {
],
inputColumn: "Allgemeines",
sortable: true
},{
key: "customTaxType",
label: "Standard Steuertyp",
inputType: "select",
selectValueAttribute:"key",
selectOptionAttribute: "label",
selectManualOptions: [
{label:'Standard', key: 'Standard'},
{label:'13b UStG', key: '13b UStG'},
{label:'19 UStG Kleinunternehmer', key: '19 UStG'},
],
inputColumn: "Allgemeines",
sortable: true
}, {
key: "customSurchargePercentage",
label: "Individueller Aufschlag",