This commit is contained in:
2025-07-31 20:38:38 +02:00
parent 841bb67d60
commit 7265164b0a

View File

@@ -700,7 +700,6 @@ const tabItems = computed(() => {
})
const renderCurrency = (value, currency = "€") => {
return Number(value).toFixed(2).replace(".",",") + " €"
//return Number(value).toFixed(2).replace(".",",") + " " + currency
return useCurrency(value, currency)
}
@@ -1422,13 +1421,15 @@ const checkCompatibilityWithInputPrice = () => {
const updateCustomSurcharge = () => {
itemInfo.value.rows.forEach(row => {
if(!["pagebreak","title","text"].includes(row.mode)) {
if(!["pagebreak","title","text"].includes(row.mode) /*&& !row.linkedEntitys.find(i => i.type === "createddocuments" && i.subtype === "advanceInvoices")*/) {
//setRowData(row)
row.price = Number((row.inputPrice * (1 + itemInfo.value.customSurchargePercentage /100)).toFixed(2))
}
}/* else if(!["pagebreak","title","text"].includes(row.mode) /!*&& row.linkedEntitys.find(i => i.type === "createddocuments" && i.subtype === "advanceInvoices")*!/) {
row.price = row.inputPrice
}*/
})
}
@@ -1625,7 +1626,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
<UFormGroup
label="Steuertyp:"
v-if="['invoices','quotes','confirmationOrders'].includes(itemInfo.type)"
v-if="['invoices','advanceInvoices','quotes','confirmationOrders'].includes(itemInfo.type)"
>
<USelectMenu
:options="[{key:'Standard', label: 'Standard'},{key:'13b UStG', label: '13b UStG'},{key:'19 UStG', label: '19 UStG Kleinunternehmer'},{key:'12.3 UStG', label: 'PV 0% USt'}]"