From f98603d2de420ad67849ea29b974b61b48c4619f Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Tue, 10 Dec 2024 13:25:27 -0700 Subject: [PATCH] --Cobro por caja. Cambiar alert por toast --- Ventas/PVCobranza.aspx.vb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Ventas/PVCobranza.aspx.vb b/Ventas/PVCobranza.aspx.vb index f44faf8d6..9f315ff3c 100644 --- a/Ventas/PVCobranza.aspx.vb +++ b/Ventas/PVCobranza.aspx.vb @@ -1281,10 +1281,10 @@ Partial Class Ventas_PVCobranza If ObjPVenta.UpdateFinalizadoVtaCortes(CveCorte, TxtEfectivoCajaBloqueo.Text.ToDouble, LblDiferenciaCajaBloqueo.Text.ToDouble, NowADS(), UsuarioActual.CveEmpresa) Then RegistraScript($"window.location.href = '/Compras/PopUpVerFactura.aspx?P={Encripta(String.Format("OP=CORT&CVECORTE={0}&FORMATO={1}", CveCorte, "PDF"))}'", "Imprimir") Dim Liga As String = "document.location.href=""/Ventas/PVCobranza.aspx"";" - Alert("Se ha cerrado el turno correctamente.", TipoMensaje.MsgInformacion, Liga) + Alert("Se ha cerrado el turno correctamente.", TipoMensaje.MsgInformacion, Liga, ShowCloseButton:=False) End If Else - Alert("Debe especificar el efectivo en caja", TipoMensaje.MsgAdvertencia) + Alert("Debe especificar el efectivo en caja", TipoMensaje.ToastAdventencia, timeout:=60) RegistraScript("window.onload = function MuestraPantallaBloqueo() { document.getElementById(""C_btnShowBloqueo"").click(); }") End If ObjPVenta.Dispose() @@ -1292,7 +1292,7 @@ Partial Class Ventas_PVCobranza Private Sub BtnIniciarTurno_Click(sender As Object, e As EventArgs) Handles BtnIniciarTurno.Click If DdlSucursalCorte.SelectedValue.ToEntero() <= 0 Then - Alert("Debe seleccionar una sucursal.", TipoMensaje.ToastAdventencia) + Alert("Debe seleccionar una sucursal.", TipoMensaje.ToastAdventencia, timeout:=60) RegistraScript("window.onload = function MuestraCorteCaja() { document.getElementById(""C_btnShow"").click(); }") Exit Sub End If