From 1fa6dba94c03a44eaec6a02262ad65645263db6f Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Thu, 16 Jan 2025 21:26:34 -0700 Subject: [PATCH] --FIX Num telefono --- Ventas/PVCobranza.aspx.vb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Ventas/PVCobranza.aspx.vb b/Ventas/PVCobranza.aspx.vb index bb5a2f124..f4e24585b 100644 --- a/Ventas/PVCobranza.aspx.vb +++ b/Ventas/PVCobranza.aspx.vb @@ -2150,13 +2150,16 @@ Partial Class Ventas_PVCobranza If EsProduccion Then NumeroTelefono = String.Format("52{0}", dr("Celular").ToString()) End If + Dim Arr As New ArrayList Arr.Add(DdlSucursalCorte.SelectedItem.Text) Arr.Add(NombreCliente) Arr.Add(Folio) 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 End If @@ -2170,12 +2173,11 @@ Partial Class Ventas_PVCobranza If EnvioMsg Then msgAlert = $"{msgAlert} Se envió una notificación de autorización a los usuarios" End If - Alert(msgAlert, TipoMensaje.MsgInformacion) + Alert(msgAlert, TipoMensaje.ToastInformacionB) End If ObjVta.Dispose() - - CargaAnticipos(CveVenta) + UpAnticipos.Update() End Sub