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