From 85dc73d87bbbb164b2b9745056a59315075b3beb Mon Sep 17 00:00:00 2001 From: Jonathan Alexis Perez Morales Date: Thu, 5 Jan 2023 21:07:05 -0700 Subject: [PATCH] BDH. Validar si tiene ajustes por garantia. si tiene el concepto de descuento por garantia. --- Ventas/PV.aspx.vb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ventas/PV.aspx.vb b/Ventas/PV.aspx.vb index b1ed5301f..b7f8c3e95 100644 --- a/Ventas/PV.aspx.vb +++ b/Ventas/PV.aspx.vb @@ -3465,6 +3465,11 @@ Partial Class PV MandarCorreoSupervisor = False End If + If TmpDT.FiltraParametros("Obs = 'Descuento por garantía'").Rows.Count > 0 AndAlso (TmpDTAjustes Is Nothing OrElse TmpDTAjustes.Rows.Count = 0) Then + Alert("No se ha especificado la garantía", TipoMensaje.MsgAdvertencia) + Exit Sub + End If + 'If TmpDTAjustes IsNot Nothing AndAlso Not TmpDTAjustes.Rows.Count > 0 AndAlso UsuarioActual.Empresa.Funcionalidad(531).ToString = "1" Then ' RegistraScript("$('#DModalRecepcionUsados').modal('show');") 'Else