This commit is contained in:
2025-08-27 14:04:08 +02:00
parent 08f3e41f85
commit abaa516140
7 changed files with 89 additions and 73 deletions

View File

@@ -357,7 +357,7 @@ Public Class frmFaktEmail
Else
Dim SQL As New VERAG_PROG_ALLGEMEIN.SQL
Dim listOfTextconserven As cTextkonserve_LIST = New cTextkonserve_LIST(1, "", Firma_ID)
Dim listOfTextconserven As cTextkonserve_LIST = New cTextkonserve_LIST(IIf(cbxVZ.Checked, 7, 1), "", Firma_ID)
Dim mailText As String = ""
Dim spracheRechnung As String = "EN" 'Defaultsprache
@@ -1370,6 +1370,21 @@ Public Class frmFaktEmail
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
setMailText(KdNr, "RO")
End Sub
Private Sub cbxVZ_CheckedChanged(sender As Object, e As EventArgs) Handles cbxVZ.CheckedChanged
If KdNr > 0 Then
If SR Then
Dim AD = New VERAG_PROG_ALLGEMEIN.cAdressen(KdNr)
setMailText(KdNr, AD.LandKz)
Else
If RECHNUNG IsNot Nothing Then setMailText(KdNr, RECHNUNG.RechnungsLandKz)
End If
End If
End Sub
End Class