Correcion en envio de correos en ventas
This commit is contained in:
@@ -592,12 +592,12 @@ Partial Class Ventas
|
|||||||
End Property
|
End Property
|
||||||
Private ReadOnly Property Mail As String
|
Private ReadOnly Property Mail As String
|
||||||
Get
|
Get
|
||||||
Return ViewState("Mail").ToString()
|
Return IfNull(ViewState("Mail"), "").ToString()
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Private ReadOnly Property MailCC As String
|
Private ReadOnly Property MailCC As String
|
||||||
Get
|
Get
|
||||||
Return ViewState("MailCC").ToString()
|
Return IfNull(ViewState("MailCC"), "").ToString()
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
Private ReadOnly Property CveVenta As Integer
|
Private ReadOnly Property CveVenta As Integer
|
||||||
@@ -21148,17 +21148,17 @@ Partial Class Ventas
|
|||||||
Dim ObjMail As New ClsSisMail()
|
Dim ObjMail As New ClsSisMail()
|
||||||
Dim ResultadoMail As Integer = 0
|
Dim ResultadoMail As Integer = 0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Dim CorreoDestino As String = ""
|
Dim CorreoDestino As String = ""
|
||||||
|
|
||||||
|
If Me.Mail.Trim.Length > 0 Then
|
||||||
|
CorreoDestino = Me.Mail
|
||||||
|
End If
|
||||||
|
|
||||||
If CorreoContactoCRM.Trim.Length > 0 Then
|
If CorreoContactoCRM.Trim.Length > 0 Then
|
||||||
CorreoDestino = CorreoContactoCRM
|
CorreoDestino = CorreoContactoCRM
|
||||||
ViewState("MailCC") = ""
|
ViewState("MailCC") = ""
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|
||||||
Dim Asunto As String = String.Empty
|
Dim Asunto As String = String.Empty
|
||||||
|
|||||||
Reference in New Issue
Block a user