Teilnahmerechnungen erstellen
This commit is contained in:
@@ -29,8 +29,15 @@ const form = ref({
|
||||
tax_exemption_reason: props.data.tax_exemption_reason ?? '',
|
||||
tax_exemption_note: props.data.tax_exemption_note ?? '',
|
||||
vat_pricing_mode: props.data.vat_pricing_mode ?? 'inclusive',
|
||||
tax_number: props.data.tax_number ?? '',
|
||||
vat_id: props.data.vat_id ?? '',
|
||||
invoice_prefix: props.data.invoice_prefix ?? '',
|
||||
})
|
||||
|
||||
// Das Präfix bestimmt den Nummernkreis und darf sich nachträglich nicht ändern -- sonst gehörten bereits
|
||||
// herausgegebene Rechnungen plötzlich zu einer anderen Nummer. Nur in der verwalteten Ansicht editierbar.
|
||||
const canEditPrefix = computed(() => props.data.can_edit_invoice_prefix === true)
|
||||
|
||||
const isLiable = computed(() => form.value.tax_liable === '1')
|
||||
const isCustomReason = computed(() => form.value.tax_exemption_reason === 'custom')
|
||||
|
||||
@@ -65,6 +72,9 @@ async function save() {
|
||||
tax_exemption_reason: isLiable.value ? null : form.value.tax_exemption_reason,
|
||||
tax_exemption_note: form.value.tax_exemption_note,
|
||||
vat_pricing_mode: form.value.vat_pricing_mode,
|
||||
tax_number: form.value.tax_number,
|
||||
vat_id: form.value.vat_id,
|
||||
invoice_prefix: canEditPrefix.value ? form.value.invoice_prefix : undefined,
|
||||
},
|
||||
})
|
||||
|
||||
@@ -100,6 +110,18 @@ async function save() {
|
||||
<th>Rechnungshinweis</th>
|
||||
<td>{{ invoiceHint }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Steuernummer</th>
|
||||
<td>{{ form.tax_number || '—' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>USt-IdNr.</th>
|
||||
<td>{{ form.vat_id || '—' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Rechnungs-Präfix</th>
|
||||
<td>{{ form.invoice_prefix || '—' }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<button class="btn-edit" @click="editing = true">Bearbeiten</button>
|
||||
</div>
|
||||
@@ -152,6 +174,42 @@ async function save() {
|
||||
<th>Rechnungshinweis</th>
|
||||
<td class="hint-preview">{{ invoiceHint }}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>Steuernummer</th>
|
||||
<td>
|
||||
<input type="text" v-model="form.tax_number" class="form-input" />
|
||||
<span class="field-hint">
|
||||
Pflichtangabe auf Rechnungen — alternativ die USt-IdNr. (§ 14 Abs. 4 Nr. 2 UStG)
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>USt-IdNr.</th>
|
||||
<td><input type="text" v-model="form.vat_id" class="form-input" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Rechnungs-Präfix</th>
|
||||
<td>
|
||||
<input
|
||||
type="text"
|
||||
v-model="form.invoice_prefix"
|
||||
class="form-input"
|
||||
:disabled="!canEditPrefix"
|
||||
/>
|
||||
<span class="field-hint">
|
||||
Erster Block der Rechnungsnummer, z. B. <code>WM</code> in
|
||||
<code>WM-V-20260701-0005</code>.
|
||||
<template v-if="canEditPrefix">
|
||||
Eine Änderung wirkt nur auf künftige Veranstaltungen; bereits angelegte behalten
|
||||
ihre Nummer.
|
||||
</template>
|
||||
<template v-else>
|
||||
Änderbar nur in der Mandanten-Verwaltung.
|
||||
</template>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn-group">
|
||||
<button class="btn-save" @click="save">Speichern</button>
|
||||
@@ -195,6 +253,25 @@ async function save() {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.field-hint {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
font-size: 0.8rem;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.field-hint code {
|
||||
padding: 1px 4px;
|
||||
background-color: #f3f4f6;
|
||||
border-radius: 3px;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
.form-input:disabled {
|
||||
background-color: #f3f4f6;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.btn-edit, .btn-save, .btn-cancel {
|
||||
margin-top: 15px;
|
||||
padding: 8px 20px;
|
||||
|
||||
Reference in New Issue
Block a user