Initial for #123
This commit is contained in:
@@ -15,6 +15,11 @@ const setupPage = async () => {
|
||||
|
||||
const features = ref(auth.activeTenantData.features)
|
||||
const businessInfo = ref(auth.activeTenantData.businessInfo)
|
||||
const accountChart = ref(auth.activeTenantData.accountChart || "skr03")
|
||||
const accountChartOptions = [
|
||||
{ label: "SKR 03", value: "skr03" },
|
||||
{ label: "Verein", value: "verein" }
|
||||
]
|
||||
|
||||
const updateTenant = async (newData) => {
|
||||
|
||||
@@ -24,6 +29,11 @@ const updateTenant = async (newData) => {
|
||||
data: newData,
|
||||
}
|
||||
})
|
||||
|
||||
if (res) {
|
||||
itemInfo.value = res
|
||||
auth.activeTenantData = res
|
||||
}
|
||||
}
|
||||
|
||||
setupPage()
|
||||
@@ -63,8 +73,8 @@ setupPage()
|
||||
|
||||
</div>
|
||||
<div v-if="item.label === 'Rechnung & Kontakt'">
|
||||
<UCard class="mt-5">
|
||||
<UForm class="w-1/2">
|
||||
<UCard class="mt-5">
|
||||
<UForm class="w-1/2">
|
||||
<UFormGroup
|
||||
label="Firmenname:"
|
||||
>
|
||||
@@ -90,6 +100,23 @@ setupPage()
|
||||
>
|
||||
Speichern
|
||||
</UButton>
|
||||
<UFormGroup
|
||||
label="Kontenrahmen:"
|
||||
class="mt-6"
|
||||
>
|
||||
<USelectMenu
|
||||
v-model="accountChart"
|
||||
:options="accountChartOptions"
|
||||
option-attribute="label"
|
||||
value-attribute="value"
|
||||
/>
|
||||
</UFormGroup>
|
||||
<UButton
|
||||
class="mt-3"
|
||||
@click="updateTenant({accountChart: accountChart})"
|
||||
>
|
||||
Kontenrahmen speichern
|
||||
</UButton>
|
||||
</UForm>
|
||||
</UCard>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user