diff --git a/Ventas/Ventas.aspx.vb b/Ventas/Ventas.aspx.vb
index 27a11d1a5..b4222dc64 100644
--- a/Ventas/Ventas.aspx.vb
+++ b/Ventas/Ventas.aspx.vb
@@ -7778,7 +7778,7 @@ Partial Class Ventas
End If
End If
- If Not EsFilial AndAlso (((DdlTipoComprobante.SelectedValue.Contiene("Ing", "Ant", "Rem", "Cot", "PA") AndAlso CveVenta <= 0) OrElse (DdlTipoComprobante.SelectedValue.Contiene("Cot") AndAlso CveVenta > 0)) AndAlso RBLPago.SelectedValue = "1" AndAlso PermiteCredito) Then
+ If Not EsFilial AndAlso (((DdlTipoComprobante.SelectedValue.Contiene("Ing", "Ant", "Rem", "Cot", "PA") AndAlso CveVenta <= 0) OrElse (DdlTipoComprobante.SelectedValue.Contiene("Cot", "Rem") AndAlso CveVenta > 0)) AndAlso RBLPago.SelectedValue = "1" AndAlso PermiteCredito) Then
'FUNCIONALIDAD 702 - NO VERIFICAR LIMITE DE CRÉDITO Y CANDADOS DE VENTA
If Not UsuarioActual.Empresa.Funcionalidad(702) = "1" Then
@@ -8057,6 +8057,24 @@ Partial Class Ventas
End If
End If
+ Case "3" ' autorización con vinculación a una venta registrada
+
+ Dim Vta As New ClsVentas
+ Dim Opcion As Integer = Vta.ObtenerClienteLimitesVenta(CveCliente, UsuarioActual.CveEmpresa)
+ Dim OpcionMsg As String = String.Format("El Cliente se encuentra bloqueado por la siguiente razón:
{0}", Vta.SerieVenta)
+ Vta.Dispose()
+ If Opcion > 0 Then
+ If Alertas Then Alert(OpcionMsg, TipoMensaje.MsgAdvertencia)
+ Else
+ If Alertas Then Alert("El cliente tiene su límite de crédito agotado.", TipoMensaje.MsgAdvertencia)
+ End If
+
+ TrCredito1.Visible = True
+ ChkSolicitudAutorizacionCredito.Checked = True
+ LnkSolicitarCredito.Visible = True
+ divModalidad2.Visible = False
+ divModalidad3.Visible = True
+ Me.Bloqueada = True
Case Else 'SI NO TIENE NINGUN TIPO DE AUTORIZACION CONFIGURADO
'VERIFICAR CANDADOS DE VENTA
@@ -26290,7 +26308,7 @@ Partial Class Ventas
sb.Append(" EN SU CONTABILIDAD. ")
sb.Append(" ")
sb.Append("
")
- sb.Append(" Este correo se generó automaticamente, favor de no responder este mensaje.")
+ sb.Append(" Este correo se generó automáticamente, favor de no responder este mensaje.")
sb.Append(" ")
sb.Append("