FaktEmail PARSAN
This commit is contained in:
@@ -225,6 +225,13 @@ Public Class frmFaktEmail
|
||||
End If
|
||||
End If
|
||||
|
||||
'Parsan
|
||||
If SPEDBUCH IsNot Nothing Then
|
||||
If (RECHNUNG.RechnungsKundenNr = 712814) Then
|
||||
If Not SR Then TextHTMLADD = addRgData_Parsan(RechnungsLandKz)
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
Dim TextHTML = ""
|
||||
Select Case RechnungsLandKz
|
||||
@@ -500,6 +507,34 @@ Public Class frmFaktEmail
|
||||
' addRgData_ZF_Passau = RichTextBox.Text.Replace("Mit freundlichen Grüßen", "")
|
||||
|
||||
|
||||
End Function
|
||||
Function addRgData_Parsan(RechnungsLandKz) As String
|
||||
addRgData_Parsan = vbNewLine & vbNewLine
|
||||
Dim ZOLLANMELDUNG As New DAKOSY_Worker.cZollsysteme_Aktenbeschriftung
|
||||
|
||||
Select Case RechnungsLandKz
|
||||
Case "TR"
|
||||
' addRgData_Parsan &= "Sender: " & RECHNUNG.AbsenderName_1 & ", " & If(RECHNUNG.AbsenderOrt, "") & vbNewLine
|
||||
If ZOLLANMELDUNG.getDataByBezugsnummer(RECHNUNG.FilialenNr & "/" & RECHNUNG.AbfertigungsNr, SPEDBUCH.Abfertigungsart, "", SPEDBUCH.Grenzstelle) Then
|
||||
addRgData_Parsan &= "Invoice-No.: " & ZOLLANMELDUNG.Handelsrechnung.Replace(", ", "," & vbNewLine) & vbNewLine
|
||||
addRgData_Parsan &= "Invoice-Total: " & ZOLLANMELDUNG.Rechnungspreis & vbNewLine
|
||||
End If
|
||||
Case "A", "AT", "D", "DE", "CH"
|
||||
' addRgData_Parsan &= "Absender: " & RECHNUNG.AbsenderName_1 & ", " & If(RECHNUNG.AbsenderOrt, "") & vbNewLine
|
||||
If ZOLLANMELDUNG.getDataByBezugsnummer(RECHNUNG.FilialenNr & "/" & RECHNUNG.AbfertigungsNr, SPEDBUCH.Abfertigungsart, "", SPEDBUCH.Grenzstelle) Then
|
||||
addRgData_Parsan &= "Handelsrechnungs-Nr.: " & ZOLLANMELDUNG.Handelsrechnung.Replace(", ", "," & vbNewLine) & vbNewLine
|
||||
addRgData_Parsan &= "Handelsrechnungs-Betrag: " & ZOLLANMELDUNG.Rechnungspreis & vbNewLine
|
||||
End If
|
||||
Case Else
|
||||
'addRgData_Parsan &= "Sender: " & RECHNUNG.AbsenderName_1 & ", " & If(RECHNUNG.AbsenderOrt, "") & vbNewLine
|
||||
If ZOLLANMELDUNG.getDataByBezugsnummer(RECHNUNG.FilialenNr & "/" & RECHNUNG.AbfertigungsNr, SPEDBUCH.Abfertigungsart, "", SPEDBUCH.Grenzstelle) Then
|
||||
addRgData_Parsan &= "Invoice-No.: " & ZOLLANMELDUNG.Handelsrechnung.Replace(", ", "," & vbNewLine) & vbNewLine
|
||||
addRgData_Parsan &= "Invoice-Total: " & ZOLLANMELDUNG.Rechnungspreis & vbNewLine
|
||||
End If
|
||||
End Select
|
||||
|
||||
|
||||
|
||||
End Function
|
||||
|
||||
Sub send_StbFAMail(KundenNr, RgAbfNr, RechnungsNr)
|
||||
|
||||
Reference in New Issue
Block a user