Corrected TaxType Saving and Display of DeliveryDate when "Kein Lieferdatum anzeigen"

This commit is contained in:
2025-04-09 20:24:30 +02:00
parent e45ff93100
commit f0c96f5e10

View File

@@ -1097,7 +1097,7 @@ const saveDocument = async (state,resetup = false) => {
let createData = {
type: itemInfo.value.type,
taxType: itemInfo.value.type === "invoices" ? itemInfo.value.taxType : null,
taxType: (itemInfo.value.type === "invoices" || itemInfo.value.type === "quotes") ? itemInfo.value.taxType : null,
state: itemInfo.value.state || "Entwurf",
customer: itemInfo.value.customer,
contact: itemInfo.value.contact,
@@ -1632,7 +1632,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
</UFormGroup>
<UFormGroup
:label="`${itemInfo.deliveryDateType}${['Lieferzeitraum', 'Leistungszeitraum'].includes(itemInfo.deliveryDateType) ? ' Start' : ''}:`"
v-if="itemInfo.type !== 'serialInvoices'"
v-if="itemInfo.type !== 'serialInvoices' && itemInfo.deliveryDateType !== 'Kein Lieferdatum anzeigen'"
class="mr-1"
>
<UPopover :popper="{ placement: 'bottom-start' }">