--FIX Num telefono

This commit is contained in:
2025-01-16 21:26:34 -07:00
parent ffe21d7034
commit 1fa6dba94c

View File

@@ -2150,13 +2150,16 @@ Partial Class Ventas_PVCobranza
If EsProduccion Then If EsProduccion Then
NumeroTelefono = String.Format("52{0}", dr("Celular").ToString()) NumeroTelefono = String.Format("52{0}", dr("Celular").ToString())
End If End If
Dim Arr As New ArrayList Dim Arr As New ArrayList
Arr.Add(DdlSucursalCorte.SelectedItem.Text) Arr.Add(DdlSucursalCorte.SelectedItem.Text)
Arr.Add(NombreCliente) Arr.Add(NombreCliente)
Arr.Add(Folio) Arr.Add(Folio)
Arr.Add($"$ {Importe}") Arr.Add($"$ {Importe}")
EnvioMsg = EnviarNotificacionWhatsAppPlantilla(NumeroTelefono, "solicitud_autorizacion_anticipo", Arr, $"https://grupodiaz.adssistemas.mx.com/Clientes/Clientes.aspx?CveCliente={CveCliente}") If NumeroTelefono.Length = 12 Then
EnvioMsg = EnviarNotificacionWhatsAppPlantilla(NumeroTelefono, "solicitud_autorizacion_anticipo", Arr, $"https://grupodiaz.adssistemas.mx.com/Clientes/Clientes.aspx?CveCliente={CveCliente}")
End If
Next Next
End If End If
@@ -2170,12 +2173,11 @@ Partial Class Ventas_PVCobranza
If EnvioMsg Then If EnvioMsg Then
msgAlert = $"{msgAlert} Se envió una notificación de autorización a los usuarios" msgAlert = $"{msgAlert} Se envió una notificación de autorización a los usuarios"
End If End If
Alert(msgAlert, TipoMensaje.MsgInformacion) Alert(msgAlert, TipoMensaje.ToastInformacionB)
End If End If
ObjVta.Dispose() ObjVta.Dispose()
UpAnticipos.Update()
CargaAnticipos(CveVenta)
End Sub End Sub