Fixed BCC when no standard E-Mail is present
This commit is contained in:
@@ -45,7 +45,7 @@ setupPage()
|
|||||||
|
|
||||||
const openEmail = () => {
|
const openEmail = () => {
|
||||||
if(["invoices","advanceInvoices"].includes(itemInfo.value.type)){
|
if(["invoices","advanceInvoices"].includes(itemInfo.value.type)){
|
||||||
router.push(`/email/new?loadDocuments=["${linkedDocument.value.id}"]&bcc=${encodeURIComponent(currentTenant.value.standardEmailForInvoices)}`)
|
router.push(`/email/new?loadDocuments=["${linkedDocument.value.id}"]&bcc=${encodeURIComponent(currentTenant.value.standardEmailForInvoices || "")}`)
|
||||||
} else {
|
} else {
|
||||||
router.push(`/email/new?loadDocuments=["${linkedDocument.value.id}"]`)
|
router.push(`/email/new?loadDocuments=["${linkedDocument.value.id}"]`)
|
||||||
}
|
}
|
||||||
@@ -80,61 +80,6 @@ const openEmail = () => {
|
|||||||
>
|
>
|
||||||
Kopieren
|
Kopieren
|
||||||
</UButton>
|
</UButton>
|
||||||
<!-- <UTooltip
|
|
||||||
text="Kopieren in Angebot"
|
|
||||||
>
|
|
||||||
<UButton
|
|
||||||
icon="i-heroicons-arrow-right-end-on-rectangle"
|
|
||||||
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=quotes`)"
|
|
||||||
variant="outline"
|
|
||||||
>
|
|
||||||
Angebot
|
|
||||||
</UButton>
|
|
||||||
</UTooltip>
|
|
||||||
<UTooltip
|
|
||||||
text="Kopieren in Auftragsbestätigung"
|
|
||||||
>
|
|
||||||
<UButton
|
|
||||||
icon="i-heroicons-arrow-right-end-on-rectangle"
|
|
||||||
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=confirmationOrders`)"
|
|
||||||
variant="outline"
|
|
||||||
>
|
|
||||||
Auftragsbestätigung
|
|
||||||
</UButton>
|
|
||||||
</UTooltip>
|
|
||||||
<UTooltip
|
|
||||||
text="Kopieren in Lieferschein"
|
|
||||||
>
|
|
||||||
<UButton
|
|
||||||
icon="i-heroicons-arrow-right-end-on-rectangle"
|
|
||||||
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=deliveryNotes`)"
|
|
||||||
variant="outline"
|
|
||||||
>
|
|
||||||
Lieferschein
|
|
||||||
</UButton>
|
|
||||||
</UTooltip>
|
|
||||||
<UTooltip
|
|
||||||
text="Kopieren in Abschlagsrechnung"
|
|
||||||
>
|
|
||||||
<UButton
|
|
||||||
icon="i-heroicons-arrow-right-end-on-rectangle"
|
|
||||||
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=advanceInvoices`)"
|
|
||||||
variant="outline"
|
|
||||||
>
|
|
||||||
Abschlagsrechnung
|
|
||||||
</UButton>
|
|
||||||
</UTooltip>
|
|
||||||
<UTooltip
|
|
||||||
text="Kopieren in Rechnung"
|
|
||||||
>
|
|
||||||
<UButton
|
|
||||||
icon="i-heroicons-arrow-right-end-on-rectangle"
|
|
||||||
@click="router.push(`/createDocument/edit/?linkedDocument=${itemInfo.id}&type=invoices`)"
|
|
||||||
variant="outline"
|
|
||||||
>
|
|
||||||
Rechnung
|
|
||||||
</UButton>
|
|
||||||
</UTooltip>-->
|
|
||||||
<UButton
|
<UButton
|
||||||
@click="openEmail"
|
@click="openEmail"
|
||||||
icon="i-heroicons-envelope"
|
icon="i-heroicons-envelope"
|
||||||
|
|||||||
Reference in New Issue
Block a user