From 7a5060f7ce72ca3c82129fc0ed3e8ab2638c9b01 Mon Sep 17 00:00:00 2001 From: rrene Date: Wed, 26 Jan 2022 13:40:59 -0700 Subject: [PATCH] =?UTF-8?q?mejoras=20en=20autorizaciones=20de=20cr=C3=A9di?= =?UTF-8?q?to?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ventas/CatAutorizacionLimites.aspx | 13 +++++++++---- Ventas/CatAutorizacionLimites.aspx.vb | 6 ++++++ Ventas/Ventas.aspx.vb | 4 +--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Ventas/CatAutorizacionLimites.aspx b/Ventas/CatAutorizacionLimites.aspx index af813da4f..1b989eed8 100644 --- a/Ventas/CatAutorizacionLimites.aspx +++ b/Ventas/CatAutorizacionLimites.aspx @@ -67,15 +67,20 @@ EmptyDataText="No se encontraron autorizaciones" ToolTip="" CssClass="table table-striped table-advance table-hover ScrollAD mysmallbtn" data-sort="true" Width="100%" GridLines="None"> + + + + + + - + - - - + + diff --git a/Ventas/CatAutorizacionLimites.aspx.vb b/Ventas/CatAutorizacionLimites.aspx.vb index 5a3c9de21..bcf73786a 100644 --- a/Ventas/CatAutorizacionLimites.aspx.vb +++ b/Ventas/CatAutorizacionLimites.aspx.vb @@ -153,6 +153,12 @@ Partial Class Ventas_CatAutorizacionLimites e.Row.FCLinkButton("LnkAutorizar").Visible = False e.Row.FCLinkButton("LnkRechazar").Visible = False End If + If e.Row.DBCampo("TipoDocumento") = "Ingreso" Then + e.Row.FCLabel("LblTipo").CssClass = "label label-sm label-success" + Else + e.Row.FCLabel("LblTipo").CssClass = "label label-sm label-warning" + End If + 'If e.Row.DBCampo("Estatus") = "True" Then ' e.Row.Cells(1).ForeColor = Drawing.Color.Green ' e.Row.Cells(1).Font.Bold = True diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb index 2c2af90e1..71fc88e46 100644 --- a/Ventas/Ventas.aspx.vb +++ b/Ventas/Ventas.aspx.vb @@ -26939,9 +26939,7 @@ Partial Class Ventas Protected Sub BtnAplicarNC_Click(sender As Object, e As EventArgs) 'SOLO APLICA SI NO HAY DOCUMENTOS QUE SELECCIONAR If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then - Dim Verificacion As Boolean = False - If ListaRemisionesNC IsNot Nothing AndAlso ListaRemisionesNC.Count > 0 Then ' si hay opciones seleccionadas, se activa el generar las NCs Verificacion = True Else @@ -26954,7 +26952,7 @@ Partial Class Ventas Dim RowAutorizacion As DataRow = ObjVentas.DtResultados.FiltroPrimero($"CveVenta IS NULL ", Orderby:="TipoAutorizacion") If RowAutorizacion IsNot Nothing Then Dim ImporteAutorizacion As Decimal = RowAutorizacion("Importe").ToString().ToDecimal() - If ImporteAutorizacion > TxtTotalGv.Text.ToDecimal Then + If ImporteAutorizacion > TxtNCImporte.Text.ToDecimal Then Verificacion = True End If End If