Manuelle Buchungen Select ohne Leerwert absichern
This commit is contained in:
@@ -16,7 +16,7 @@ const expandedDebitGroups = ref([])
|
||||
const expandedCreditGroups = ref([])
|
||||
|
||||
const DATEV_TAX_KEY_ITEMS = [
|
||||
{ value: "", label: "Ohne Steuerschlüssel" },
|
||||
{ value: "__none__", label: "Ohne Steuerschlüssel" },
|
||||
{ value: "9", label: "9 - Vorsteuer 19 %" },
|
||||
{ value: "8", label: "8 - Vorsteuer 7 %" },
|
||||
{ value: "19", label: "19 - EU Vorsteuer 19 %" },
|
||||
@@ -28,7 +28,7 @@ const form = reactive({
|
||||
amount: null,
|
||||
debit: "",
|
||||
credit: "",
|
||||
datevTaxKey: "",
|
||||
datevTaxKey: "__none__",
|
||||
description: ""
|
||||
})
|
||||
|
||||
@@ -196,7 +196,7 @@ const resetForm = () => {
|
||||
form.amount = null
|
||||
form.debit = ""
|
||||
form.credit = ""
|
||||
form.datevTaxKey = ""
|
||||
form.datevTaxKey = "__none__"
|
||||
form.description = ""
|
||||
debitSearch.value = ""
|
||||
creditSearch.value = ""
|
||||
@@ -215,7 +215,7 @@ const saveBooking = async () => {
|
||||
const payload = {
|
||||
manualBookingDate: form.manualBookingDate,
|
||||
amount: Number(form.amount),
|
||||
datevTaxKey: form.datevTaxKey || null,
|
||||
datevTaxKey: form.datevTaxKey === "__none__" ? null : form.datevTaxKey,
|
||||
description: form.description || "Manuelle Buchung",
|
||||
...buildSidePayload(form.debit, "debit"),
|
||||
...buildSidePayload(form.credit, "credit")
|
||||
|
||||
Reference in New Issue
Block a user