Fix #51
This commit is contained in:
@@ -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"),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user